fixed memleak
authorJean-Philippe Orsini <jeanfi@gmail.com>
Sat, 22 Feb 2014 10:05:16 +0000 (10:05 +0000)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Sat, 22 Feb 2014 10:05:16 +0000 (10:05 +0000)
src/lp_ws.c

index 3905a28..8df7153 100644 (file)
@@ -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;