From 8a7c44223cbea87ef27a2f9f876a2cdaba8abec3 Mon Sep 17 00:00:00 2001 From: Kalle Wallin Date: Sun, 28 Mar 2004 21:27:11 +0000 Subject: We now allocate and free memory with glib git-svn-id: https://svn.musicpd.org/ncmpc/trunk@526 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- conf.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'conf.c') diff --git a/conf.c b/conf.c index 12fc15a61..170da5e5e 100644 --- a/conf.c +++ b/conf.c @@ -6,6 +6,8 @@ #include #include #include + +#include #include #include "config.h" @@ -104,7 +106,7 @@ read_rc_file(char *filename, options_t *options) { D(perror(filename)); if( free_filename ) - free(filename); + g_free(filename); return -1; } @@ -248,7 +250,7 @@ read_rc_file(char *filename, options_t *options) D(printf( "--\n\n" )); if( free_filename ) - free(filename); + g_free(filename); return 0; } -- cgit v1.2.3