changeset 30780:e59a86a86643

Fix a minor memleak on initialization
author Mark Doliner <mark@kingant.net>
date Tue, 10 Aug 2010 07:07:43 +0000
parents 605155d68812
children 87fbe58d8267
files libpurple/protocols/zephyr/ZVariables.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/zephyr/ZVariables.c	Tue Aug 10 07:04:02 2010 +0000
+++ b/libpurple/protocols/zephyr/ZVariables.c	Tue Aug 10 07:07:43 2010 +0000
@@ -30,10 +30,10 @@
 	if ((varfile = get_localvarfile()) == NULL)
 		return ((char *)0);
 
-	if ((ret = get_varval(varfile, var)) != ZERR_NONE) {
-		g_free(varfile);
+	ret = get_varval(varfile, var);
+	g_free(varfile);
+	if (ret != ZERR_NONE)
 		return ret;
-	}
 
 #ifdef WIN32
 	varfile = g_strdup("C:\\zephyr\\zephyr.var");