summaryrefslogtreecommitdiff
path: root/src/print_time.c
diff options
context:
space:
mode:
authorOrestis Floros <orestisflo@gmail.com>2020-05-01 14:14:53 +0200
committerGitHub <noreply@github.com>2020-05-01 14:14:53 +0200
commita1ed46a18a621008e36a3e6b26670f33ab031e0b (patch)
tree4b49e85e5296bb094a60729e7a29e00dd744ee0c /src/print_time.c
parentef03d7c4794d35cf322288c93577ea777a17c697 (diff)
parent45a0b91141a6e3e942b8351e765817f2d931c5a2 (diff)
Merge pull request #416 from orestisfl/memleak
Fix various memory leaks
Diffstat (limited to 'src/print_time.c')
-rw-r--r--src/print_time.c3
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);
+ }
}