diff config.c @ 1593:24508cb54f87

Fix a number of other memory errors (mostly leaks again) identified by valgrind
author Michael Pavone <pavone@retrodev.com>
date Thu, 28 Jun 2018 09:27:05 -0700
parents 6ce36c3f250b
children 1fc61c844ec5
line wrap: on
line diff
--- a/config.c	Fri Jun 22 23:10:27 2018 -0700
+++ b/config.c	Thu Jun 28 09:27:05 2018 -0700
@@ -198,6 +198,7 @@
 	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;
 }