GKeyfile: don't leak on failed get_(u)int64
authorRyan Lortie <desrt@desrt.ca>
Tue, 22 Oct 2013 20:24:41 +0000 (16:24 -0400)
committerRyan Lortie <desrt@desrt.ca>
Tue, 22 Oct 2013 20:24:41 +0000 (16:24 -0400)
commit1b592524ff461c8905b43f4fe04ae3bc47d61592
treeda1170f4973f4c8e0ef04a871501b6ba540266a6
parentefecfe0fac83fc305fd5e2c3f377ee70e1c987db
GKeyfile: don't leak on failed get_(u)int64

In the case that g_key_file_get_(u)int64 fails to parse the integer,
make sure we free the string before returning.

Reported by Andrew Stone <astonecc@gmail.com>

https://bugzilla.gnome.org/show_bug.cgi?id=710313
glib/gkeyfile.c