Added free to kv in add_key_value_pair when just a part is taken but not the whole
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user