diff options
author | Orestis Floros <orestisflo@gmail.com> | 2020-05-01 14:14:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-01 14:14:53 +0200 |
commit | a1ed46a18a621008e36a3e6b26670f33ab031e0b (patch) | |
tree | 4b49e85e5296bb094a60729e7a29e00dd744ee0c /src/print_run_watch.c | |
parent | ef03d7c4794d35cf322288c93577ea777a17c697 (diff) | |
parent | 45a0b91141a6e3e942b8351e765817f2d931c5a2 (diff) |
Merge pull request #416 from orestisfl/memleak
Fix various memory leaks
Diffstat (limited to 'src/print_run_watch.c')
-rw-r--r-- | src/print_run_watch.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/print_run_watch.c b/src/print_run_watch.c index d153da4..ccc7206 100644 --- a/src/print_run_watch.c +++ b/src/print_run_watch.c @@ -1,6 +1,7 @@ // vim:ts=4:sw=4:expandtab #include <config.h> #include <stdio.h> +#include <stdlib.h> #include <string.h> #include <yajl/yajl_gen.h> #include <yajl/yajl_version.h> @@ -35,4 +36,5 @@ void print_run_watch(yajl_gen json_gen, char *buffer, const char *title, const c END_COLOR; OUTPUT_FULL_TEXT(buffer); + free(buffer); } |