From 81ad518058d0ae188c1dc229c55d6c8f71f84dbe Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Sun, 23 Aug 2009 22:51:32 +0100 Subject: Fix use after free --- src/empathy-import-mc4-accounts.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/empathy-import-mc4-accounts.c b/src/empathy-import-mc4-accounts.c index 53063d6c2..602cfc1f9 100644 --- a/src/empathy-import-mc4-accounts.c +++ b/src/empathy-import-mc4-accounts.c @@ -85,13 +85,16 @@ _param_name_from_key (const gchar *key) { const gchar *base, *slash; gchar *account_name; + gchar *ret; account_name = _account_name_from_key (key); base = strstr (key, account_name); slash = strchr (base, '/'); + + ret = g_strdup (slash+1); g_free (account_name); - return g_strdup (slash+1); + return ret; } static gchar * -- cgit v1.2.3