Fix tiny memory leak.
This commit is contained in:
parent
2e99e1aac9
commit
126e60741e
@ -602,6 +602,7 @@ void iso_stream_get_file_name(IsoStream *stream, char *name)
|
|||||||
FSrcStreamData *data = stream->data;
|
FSrcStreamData *data = stream->data;
|
||||||
char *path = iso_file_source_get_path(data->src);
|
char *path = iso_file_source_get_path(data->src);
|
||||||
strncpy(name, path, PATH_MAX);
|
strncpy(name, path, PATH_MAX);
|
||||||
|
free(path);
|
||||||
} else if (!strncmp(type, "boot", 4)) {
|
} else if (!strncmp(type, "boot", 4)) {
|
||||||
strcpy(name, "BOOT CATALOG");
|
strcpy(name, "BOOT CATALOG");
|
||||||
} else if (!strncmp(type, "mem ", 4)) {
|
} else if (!strncmp(type, "mem ", 4)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user