summaryrefslogtreecommitdiff
path: root/src/print_ddate.c
diff options
context:
space:
mode:
authorOrestis Floros <orestisflo@gmail.com>2020-05-01 10:04:33 +0200
committerOrestis Floros <orestisflo@gmail.com>2020-05-01 13:55:19 +0200
commit980164cccaa37eea7494b2d238fdb3e4c73e3beb (patch)
tree61b503f0fd72941aa76c6d83a2f7e88c3af912b0 /src/print_ddate.c
parentef03d7c4794d35cf322288c93577ea777a17c697 (diff)
Fix various memory leaks
Fixes #362
Diffstat (limited to 'src/print_ddate.c')
-rw-r--r--src/print_ddate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/print_ddate.c b/src/print_ddate.c
index 1a5258c..149a267 100644
--- a/src/print_ddate.c
+++ b/src/print_ddate.c
@@ -173,4 +173,5 @@ void print_ddate(yajl_gen json_gen, char *buffer, const char *format, time_t t)
const size_t num = sizeof(placeholders) / sizeof(placeholder_t);
buffer = format_placeholders(format, &placeholders[0], num);
OUTPUT_FULL_TEXT(buffer);
+ free(buffer);
}