X-Git-Url: https://git.wpitchoune.net/gitweb/?p=ppastats.git;a=blobdiff_plain;f=src%2Flp_ws.c;h=8df7153a3753ceb7604fd2df60c2ebb92508f6fe;hp=3905a2813648a1ed525fdc7884a452cd40523bf5;hb=d50e289e14e306fa4c83011d7ab844700a0f0ce1;hpb=a2844e3fbd45dfe98e7fc923dd59ce38f2598f81 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;