commit da8d1800bf4129462394418f2936f4f6b7d93b22
parent edfd5c3d49748e5fc32a696502f9b3ee19b55d8a
Author: Joris Vink <joris@coders.se>
Date: Tue, 3 Apr 2018 10:53:41 +0200
free name if we're not using the asset in kodev.
minor leak, doesn't affect run-time of kore.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/cli.c b/src/cli.c
@@ -948,6 +948,7 @@ cli_build_asset(char *fpath, struct dirent *dp)
/* If this file was empty, skip it. */
if (st.st_size == 0) {
printf("skipping empty asset %s\n", name);
+ free(name);
return;
}