diff options
author | Orestis Floros <orestisflo@gmail.com> | 2020-05-01 10:04:33 +0200 |
---|---|---|
committer | Orestis Floros <orestisflo@gmail.com> | 2020-05-01 13:55:19 +0200 |
commit | 980164cccaa37eea7494b2d238fdb3e4c73e3beb (patch) | |
tree | 61b503f0fd72941aa76c6d83a2f7e88c3af912b0 /src/print_time.c | |
parent | ef03d7c4794d35cf322288c93577ea777a17c697 (diff) |
Fix various memory leaks
Fixes #362
Diffstat (limited to 'src/print_time.c')
-rw-r--r-- | src/print_time.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/print_time.c b/src/print_time.c index 67930b7..eede31d 100644 --- a/src/print_time.c +++ b/src/print_time.c @@ -82,4 +82,7 @@ void print_time(yajl_gen json_gen, char *buffer, const char *title, const char * out: *outwalk = '\0'; OUTPUT_FULL_TEXT(buffer); + if (format_time != NULL) { + free(buffer); + } } |