From bb5a189b4c9f75a65a48ea12fa980096e3d0edc2 Mon Sep 17 00:00:00 2001 From: Jiwoong Im Date: Thu, 16 Feb 2017 13:27:04 +0900 Subject: [PATCH] Fix memory leak Change-Id: I3cba0c7e2168bae886a1018a51ab637de321a69d Signed-off-by: Jiwoong Im --- src/keyval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/keyval.c b/src/keyval.c index 9dda300..5a48c0e 100755 --- a/src/keyval.c +++ b/src/keyval.c @@ -66,7 +66,7 @@ keyval_t *keyval_new(keyval_t *kv, const char *key, kv->val = calloc(1, size); if (!kv->val) { set_last_result(BUNDLE_ERROR_OUT_OF_MEMORY); - keyval_free(kv, 1); + keyval_free(kv, must_free_obj); return NULL; } if (val) -- 2.7.4