From b5d2db4d9a6927a6e4359c118ce6d83ed2625be2 Mon Sep 17 00:00:00 2001 From: Dave Gamble Date: Wed, 2 Mar 2011 19:15:06 +0000 Subject: [PATCH] print_object was calling free() rather than cJSON_free() under failure conditions! git-svn-id: http://svn.code.sf.net/p/cjson/code@36 e3330c51-1366-4df0-8b21-3ccf24e3d50e --- cJSON.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cJSON.c b/cJSON.c index 3c819bd..2f68785 100644 --- a/cJSON.c +++ b/cJSON.c @@ -428,8 +428,8 @@ static char *print_object(cJSON *item,int depth,int fmt) /* Handle failure */ if (fail) { - for (i=0;i