Always use g_free when allocating memory from glib

This commit is contained in:
Dan Nicholson 2012-05-29 17:15:34 -07:00
parent fd77d7690b
commit 5345892b8e

6
main.c
View file

@ -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