/soc/2015/jgeboski/facebook: 510e0ad7dfea: facebook: prevent pot...
James Geboski
jgeboski at gmail.com
Tue Jun 23 17:16:15 EDT 2015
Changeset: 510e0ad7dfea470242dc575ad77cb0653a9b624b
Author: James Geboski <jgeboski at gmail.com>
Date: 2015-06-14 21:34 -0400
Branch: facebook
URL: https://hg.pidgin.im/soc/2015/jgeboski/facebook/rev/510e0ad7dfea
Description:
facebook: prevent potential memory leak
diffstat:
libpurple/protocols/facebook/api.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff --git a/libpurple/protocols/facebook/api.c b/libpurple/protocols/facebook/api.c
--- a/libpurple/protocols/facebook/api.c
+++ b/libpurple/protocols/facebook/api.c
@@ -345,6 +345,8 @@ fb_api_json_chk(FbApi *api, gconstpointe
if (node != NULL) {
*node = root;
+ } else {
+ json_node_free(root);
}
return TRUE;
More information about the Commits
mailing list