From 5f1a3e5c10bd84d5049b1a8a56c5aace468761cb Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Thu, 28 Jun 2018 09:27:05 -0700 Subject: Fix a number of other memory errors (mostly leaks again) identified by valgrind --- config.c | 1 + 1 file changed, 1 insertion(+) (limited to 'config.c') diff --git a/config.c b/config.c index 9595313..2fc965c 100644 --- a/config.c +++ b/config.c @@ -198,6 +198,7 @@ uint8_t serialize_config_file(tern_node *config, char *path) uint32_t buf_size; char *buffer = serialize_config(config, &buf_size); uint8_t ret = buf_size == fwrite(buffer, 1, buf_size, f); + free(buffer); fclose(f); return ret; } -- cgit v1.2.3