From e2fcc5e0dd8d7d8930db07014607a7ecc07df8fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20G=C3=A2teau?= Date: Fri, 29 Jan 2010 06:01:50 -0500 Subject: [PATCH] Fix memory leaks --- libnotify/notify.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libnotify/notify.c b/libnotify/notify.c index d20355d..b1455a2 100644 --- a/libnotify/notify.c +++ b/libnotify/notify.c @@ -293,15 +293,23 @@ notify_get_server_info (char **ret_name, if (ret_name != NULL) *ret_name = name; + else + g_free (name); if (ret_vendor != NULL) *ret_vendor = vendor; + else + g_free (vendor); if (ret_version != NULL) *ret_version = version; + else + g_free (version); if (spec_version != NULL) *ret_spec_version = spec_version; + else + g_free (spec_version); return TRUE; }