mirror of https://git.kore.io/kore.git
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:
parent
edfd5c3d49
commit
da8d1800bf
|
@ -948,6 +948,7 @@ cli_build_asset(char *fpath, struct dirent *dp)
|
||||||
/* If this file was empty, skip it. */
|
/* If this file was empty, skip it. */
|
||||||
if (st.st_size == 0) {
|
if (st.st_size == 0) {
|
||||||
printf("skipping empty asset %s\n", name);
|
printf("skipping empty asset %s\n", name);
|
||||||
|
free(name);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue