aboutsummaryrefslogtreecommitdiffstats
path: root/conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/conf.c b/conf.c
index 12fc15a61..170da5e5e 100644
--- a/conf.c
+++ b/conf.c
@@ -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;
}