Added free to kv in add_key_value_pair when just a part is taken but not the whole

This commit is contained in:
t
2025-01-27 21:09:03 +01:00
parent 1766923c61
commit 731ebdf958
40 changed files with 1 additions and 5560 deletions
+1
View File
@@ -97,6 +97,7 @@ int add_key_value_pair(key_value_pair *kv)
return -1;
}
strcat(iterator->value, kv->value);
free_key_value_pair(&kv);
return 0;
}
iterator = iterator->next;