diff nuklear_ui/font.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 4f6e8acd7b6a
children 253c62b7144e
line wrap: on
line diff
--- a/nuklear_ui/font.c	Fri Jun 22 23:10:27 2018 -0700
+++ b/nuklear_ui/font.c	Thu Jun 28 09:27:05 2018 -0700
@@ -35,6 +35,7 @@
 		goto error;
 	}
 	FILE *f = fopen(path, "rb");
+	free(path);
 	if (!f) {
 		goto error;
 	}