pidgin: 0f25fe55: Fix a minor memleak on initialization
markdoliner at pidgin.im
markdoliner at pidgin.im
Tue Aug 10 03:14:40 EDT 2010
----------------------------------------------------------------------
Revision: 0f25fe5523bd7d9bdd4888e8323bfffb157afa57
Parent: 5f40454216dc36a3276e369a5b9483d6bddc13f2
Author: markdoliner at pidgin.im
Date: 08/10/10 03:07:43
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/0f25fe5523bd7d9bdd4888e8323bfffb157afa57
Changelog:
Fix a minor memleak on initialization
Changes against parent 5f40454216dc36a3276e369a5b9483d6bddc13f2
patched libpurple/protocols/zephyr/ZVariables.c
-------------- next part --------------
============================================================
--- libpurple/protocols/zephyr/ZVariables.c 4be98369d39b2a752d053549e917a0a614f0bac2
+++ libpurple/protocols/zephyr/ZVariables.c 447d1f74531923c97fd33db487e5367b1af74031
@@ -30,10 +30,10 @@ char *ZGetVariable(var)
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");
More information about the Commits
mailing list