aboutsummaryrefslogtreecommitdiffstats
path: root/src/strset.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-25 18:47:21 +0100
committerMax Kellermann <max@duempel.org>2009-01-25 18:47:21 +0100
commita45922cd66cf8a7a03905c020e50ab01dc05cfa9 (patch)
tree2171f4d74886b9d049eafe14dc2b1ce72036c912 /src/strset.c
parent7960ad32fcfb1e17c24d3b26e53a1cdbc5ca0028 (diff)
downloadmpd-a45922cd66cf8a7a03905c020e50ab01dc05cfa9.tar.gz
mpd-a45922cd66cf8a7a03905c020e50ab01dc05cfa9.tar.xz
mpd-a45922cd66cf8a7a03905c020e50ab01dc05cfa9.zip
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.
Diffstat (limited to 'src/strset.c')
-rw-r--r--src/strset.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/strset.c b/src/strset.c
index c5c3031b9..0eb63bcbb 100644
--- a/src/strset.c
+++ b/src/strset.c
@@ -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)