diff options
author | Kalle Wallin <kaw@linux.se> | 2004-03-28 21:27:11 +0000 |
---|---|---|
committer | Kalle Wallin <kaw@linux.se> | 2004-03-28 21:27:11 +0000 |
commit | 8a7c44223cbea87ef27a2f9f876a2cdaba8abec3 (patch) | |
tree | 18b79715c5c40be941496cfd0758ce7341da5f30 /conf.c | |
parent | e77407bf104d05c537f8f556ad9702ea98224d3c (diff) | |
download | mpd-8a7c44223cbea87ef27a2f9f876a2cdaba8abec3.tar.gz mpd-8a7c44223cbea87ef27a2f9f876a2cdaba8abec3.tar.xz mpd-8a7c44223cbea87ef27a2f9f876a2cdaba8abec3.zip |
We now allocate and free memory with glib
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@526 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | conf.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -6,6 +6,8 @@ #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> + +#include <glib.h> #include <ncurses.h> #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; } |