Fix potential memory leak
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 8s

Fixes #5
This commit is contained in:
Stephen Seo 2024-09-22 19:09:07 +09:00
parent 8974c7b31f
commit f8b2f63554

View file

@ -96,6 +96,7 @@ char *c_simple_http_combine_string_parts(const SDArchiverLinkedList *list) {
if (simple_archiver_list_get(
list, c_simple_http_internal_combine_string_parts_from_list, ptrs)) {
free(buf);
free(ptrs);
return NULL;
}