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:
Matthias Clasen 2005-02-09 15:40:12 +00:00 committed by Matthias Clasen
parent 574076fb80
commit de2763c99a
5 changed files with 22 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-02-09 Matthias Clasen <mclasen@redhat.com>
* glib/gkeyfile.c (find_file_in_data_dirs): Don't leak path
here. (#166801, Kjartan Maraas)
2005-02-08 Matthias Clasen <mclasen@redhat.com>
* glib/gkeyfile.c (g_key_file_parse_value_as_string): Don't

View File

@ -1,3 +1,8 @@
2005-02-09 Matthias Clasen <mclasen@redhat.com>
* glib/gkeyfile.c (find_file_in_data_dirs): Don't leak path
here. (#166801, Kjartan Maraas)
2005-02-08 Matthias Clasen <mclasen@redhat.com>
* glib/gkeyfile.c (g_key_file_parse_value_as_string): Don't

View File

@ -1,3 +1,8 @@
2005-02-09 Matthias Clasen <mclasen@redhat.com>
* glib/gkeyfile.c (find_file_in_data_dirs): Don't leak path
here. (#166801, Kjartan Maraas)
2005-02-08 Matthias Clasen <mclasen@redhat.com>
* glib/gkeyfile.c (g_key_file_parse_value_as_string): Don't

View File

@ -1,3 +1,8 @@
2005-02-09 Matthias Clasen <mclasen@redhat.com>
* glib/gkeyfile.c (find_file_in_data_dirs): Don't leak path
here. (#166801, Kjartan Maraas)
2005-02-08 Matthias Clasen <mclasen@redhat.com>
* glib/gkeyfile.c (g_key_file_parse_value_as_string): Don't

View File

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