Fix tiny memory leak.

This commit is contained in:
Vreixo Formoso 2008-08-19 03:03:16 +02:00
parent 2e99e1aac9
commit 126e60741e

View File

@ -602,6 +602,7 @@ void iso_stream_get_file_name(IsoStream *stream, char *name)
FSrcStreamData *data = stream->data;
char *path = iso_file_source_get_path(data->src);
strncpy(name, path, PATH_MAX);
free(path);
} else if (!strncmp(type, "boot", 4)) {
strcpy(name, "BOOT CATALOG");
} else if (!strncmp(type, "mem ", 4)) {