From: Jean-Philippe Orsini Date: Sat, 22 Feb 2014 10:05:16 +0000 (+0000) Subject: fixed memleak X-Git-Tag: v1.3.0~37 X-Git-Url: https://git.wpitchoune.net/gitweb/?p=ppastats.git;a=commitdiff_plain;h=d50e289e14e306fa4c83011d7ab844700a0f0ce1 fixed memleak --- 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;