mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-04 12:49:19 +02:00
Don't leak path
2005-02-09 Matthias Clasen <mclasen@redhat.com> * glib/gkeyfile.c (find_file_in_data_dirs): Don't leak path
This commit is contained in:
committed by
Matthias Clasen
parent
574076fb80
commit
de2763c99a
@@ -342,6 +342,8 @@ find_file_in_data_dirs (const gchar *file,
|
||||
if (output_file != NULL && fd > 0)
|
||||
*output_file = g_strdup (path);
|
||||
|
||||
g_free (path);
|
||||
|
||||
return fd;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user