free name if we're not using the asset in kodev.

minor leak, doesn't affect run-time of kore.
This commit is contained in:
Joris Vink 2018-04-03 10:53:41 +02:00
parent edfd5c3d49
commit da8d1800bf
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}