mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2026-02-04 23:30:26 +01:00
Always use g_free when allocating memory from glib
This commit is contained in:
parent
fd77d7690b
commit
5345892b8e
1 changed files with 3 additions and 3 deletions
6
main.c
6
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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue