use g_free() instead of free()
On some platforms, g_free() must be used for memory allocated by GLib. This patch intends to correct a lot of occurrences, but is probably not complete.
This commit is contained in:
@@ -64,12 +64,12 @@ void strset_free(struct strset *set)
|
||||
|
||||
while (slot != NULL) {
|
||||
next = slot->next;
|
||||
free(slot);
|
||||
g_free(slot);
|
||||
slot = next;
|
||||
}
|
||||
}
|
||||
|
||||
free(set);
|
||||
g_free(set);
|
||||
}
|
||||
|
||||
void strset_add(struct strset *set, const char *value)
|
||||
|
Reference in New Issue
Block a user