Skip to content
Snippets Groups Projects
Commit a55aceca authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Missed a speck...

parent 4377ff00
No related branches found
No related tags found
No related merge requests found
Pipeline #8022 failed
...@@ -46,7 +46,7 @@ namedStrListDelete(named_string_t ***list, size_t index) ...@@ -46,7 +46,7 @@ namedStrListDelete(named_string_t ***list, size_t index)
newlist = (named_string_t **)realloc(*list, (count + 1) * sizeof(named_string_t*)); newlist = (named_string_t **)realloc(*list, (count + 1) * sizeof(named_string_t*));
if (newlist != NULL) if (newlist != NULL)
*list = newlist; *list = newlist;
*old = (*list)[index]; old = (*list)[index];
memmove(&(*list)[index], &(*list)[index + 1], (count - index) * sizeof(named_string_t*)); memmove(&(*list)[index], &(*list)[index + 1], (count - index) * sizeof(named_string_t*));
free(old->name); free(old->name);
free(old->value); free(old->value);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment