From 5345892b8e20ce8bc5bdbea2f76f3f6ec5ef283b Mon Sep 17 00:00:00 2001 From: Dan Nicholson Date: Tue, 29 May 2012 17:15:34 -0700 Subject: [PATCH] Always use g_free when allocating memory from glib --- main.c | 6 +++--- 1 file 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