Potential memory leak #5

Closed
opened 2024-09-22 07:58:22 +00:00 by stephenseo · 0 comments
Owner

Lines 91 to 100 in 8974c7b
void **ptrs = malloc(sizeof(void*) * 3);
ptrs[0] = buf;
ptrs[1] = &current_count;
ptrs[2] = &count;
if (simple_archiver_list_get(
list, c_simple_http_internal_combine_string_parts_from_list, ptrs)) {
free(buf);
return NULL;
}

ptrs should be free'd here in this if-statement-block, though this code path should never occur.

https://git.seodisparate.com/stephenseo/c_simple_http/src/commit/8974c7b31f350aa688a19761fa7f103e0c34df0a/src/helpers.c#L91-L100 `ptrs` should be free'd here in this if-statement-block, though this code path should never occur.
stephenseo added the
bug
label 2024-09-22 07:58:38 +00:00
stephenseo self-assigned this 2024-09-22 07:58:45 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: stephenseo/c_simple_http#5
No description provided.