summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Nicholson <dbn.lists@gmail.com>2012-05-29 17:15:34 -0700
committerDan Nicholson <dbn.lists@gmail.com>2012-05-29 17:17:55 -0700
commit5345892b8e20ce8bc5bdbea2f76f3f6ec5ef283b (patch)
tree7335d815c398e8d6365d73ef07a8c16b9ecb688e
parentfd77d7690bf41659a4d66fd54b5eb76ca02aafb5 (diff)
Always use g_free when allocating memory from glib
-rw-r--r--main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index 4d40b11..b42df6f 100644
--- a/main.c
+++ b/main.c
@@ -183,9 +183,9 @@ init_pc_path (void)
shpath = g_build_filename (instdir, "share", "pkgconfig", NULL);
pkg_config_pc_path = g_strconcat (lpath, G_SEARCHPATH_SEPARATOR_S, shpath,
NULL);
- free (instdir);
- free (lpath);
- free (shpath);
+ g_free (instdir);
+ g_free (lpath);
+ g_free (shpath);
#else
pkg_config_pc_path = PKG_CONFIG_PC_PATH;
#endif