From 126e60741e513b7e59e1daae1f18b320aec232c5 Mon Sep 17 00:00:00 2001 From: Vreixo Formoso Date: Tue, 19 Aug 2008 03:03:16 +0200 Subject: [PATCH] Fix tiny memory leak. --- libisofs/stream.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libisofs/stream.c b/libisofs/stream.c index f55c25c..2f0a752 100644 --- a/libisofs/stream.c +++ b/libisofs/stream.c @@ -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)) {