diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-08-24 05:51:32 +0800 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-08-24 06:18:48 +0800 |
commit | 81ad518058d0ae188c1dc229c55d6c8f71f84dbe (patch) | |
tree | 01c50364d86e26958654e6ae1d76807d8a7764c1 /src | |
parent | 93e0d79fad604f7b0494f738f65cd5c6c46ecc8c (diff) | |
download | gsoc2013-empathy-81ad518058d0ae188c1dc229c55d6c8f71f84dbe.tar gsoc2013-empathy-81ad518058d0ae188c1dc229c55d6c8f71f84dbe.tar.gz gsoc2013-empathy-81ad518058d0ae188c1dc229c55d6c8f71f84dbe.tar.bz2 gsoc2013-empathy-81ad518058d0ae188c1dc229c55d6c8f71f84dbe.tar.lz gsoc2013-empathy-81ad518058d0ae188c1dc229c55d6c8f71f84dbe.tar.xz gsoc2013-empathy-81ad518058d0ae188c1dc229c55d6c8f71f84dbe.tar.zst gsoc2013-empathy-81ad518058d0ae188c1dc229c55d6c8f71f84dbe.zip |
Fix use after free
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-import-mc4-accounts.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 * |