From e4b83108121bc99b495b1aac43610ae9bd45c3e9 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Tue, 10 Feb 2009 12:58:36 +0000 Subject: [PATCH] Closed a memory leak with unreleased IsoImage in boot image inquiry --- xorriso/xorriso_timestamp.h | 2 +- xorriso/xorrisoburn.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/xorriso/xorriso_timestamp.h b/xorriso/xorriso_timestamp.h index 68633e90..d4023fca 100644 --- a/xorriso/xorriso_timestamp.h +++ b/xorriso/xorriso_timestamp.h @@ -1 +1 @@ -#define Xorriso_timestamP "2009.02.09.185940" +#define Xorriso_timestamP "2009.02.10.125831" diff --git a/xorriso/xorrisoburn.c b/xorriso/xorrisoburn.c index 24d9ac92..c48b987d 100644 --- a/xorriso/xorrisoburn.c +++ b/xorriso/xorrisoburn.c @@ -4031,9 +4031,12 @@ no_boot:; } return(ret); } + /* Important: no return before iso_image_unref(image); */ /* Using the nodes with extreme care . They might be deleted meanwhile. */ ret= iso_image_get_boot_image(image, &bootimg, &bootimg_node, &bootcat_node); + iso_image_unref(image); + image= NULL; if(ret != 1) goto no_boot; ret= Xorriso_path_from_node(xorriso, NULL, xorriso->loaded_boot_bin_lba,