TSG-15278 bugfix: memleak

This commit is contained in:
luwenpeng
2023-05-25 17:05:22 +08:00
parent 79e71c4240
commit dbfde6ce82
5 changed files with 73 additions and 8 deletions

View File

@@ -138,6 +138,8 @@ void sf_status_delete(struct sf_status *handle, int sf_profile_id)
handle->htable_elem_count--;
LOG_DEBUG("%s: delete: sf_profile %d success, elem_num %lu", LOG_TAG_SF_STATUS, sf_profile_id, handle->htable_elem_count);
HASH_DELETE(hh, handle->htable, temp);
free(temp);
temp = NULL;
}
else
{