aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-08-24 05:51:32 +0800
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-08-24 06:18:48 +0800
commit81ad518058d0ae188c1dc229c55d6c8f71f84dbe (patch)
tree01c50364d86e26958654e6ae1d76807d8a7764c1 /src
parent93e0d79fad604f7b0494f738f65cd5c6c46ecc8c (diff)
downloadgsoc2013-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.c5
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 *