From d50e289e14e306fa4c83011d7ab844700a0f0ce1 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Orsini Date: Sat, 22 Feb 2014 10:05:16 +0000 Subject: [PATCH] fixed memleak --- src/lp_ws.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lp_ws.c b/src/lp_ws.c index 3905a28..8df7153 100644 --- a/src/lp_ws.c +++ b/src/lp_ws.c @@ -402,6 +402,7 @@ struct daily_download_total **get_daily_download_totals(const char *binary_url) if (json) { cached_ddts = json_object_to_daily_download_totals(json); + json_object_put(json); last_t = ddts_get_last_date(cached_ddts); } else { last_t = 0; -- 2.7.4