Closed a memory leak with unreleased IsoImage in boot image inquiry
This commit is contained in:
parent
30ff70c8f1
commit
53d4c4724f
@ -1 +1 @@
|
|||||||
#define Xorriso_timestamP "2009.02.09.185940"
|
#define Xorriso_timestamP "2009.02.10.125831"
|
||||||
|
@ -4031,9 +4031,12 @@ no_boot:;
|
|||||||
}
|
}
|
||||||
return(ret);
|
return(ret);
|
||||||
}
|
}
|
||||||
|
/* Important: no return before iso_image_unref(image); */
|
||||||
|
|
||||||
/* Using the nodes with extreme care . They might be deleted meanwhile. */
|
/* Using the nodes with extreme care . They might be deleted meanwhile. */
|
||||||
ret= iso_image_get_boot_image(image, &bootimg, &bootimg_node, &bootcat_node);
|
ret= iso_image_get_boot_image(image, &bootimg, &bootimg_node, &bootcat_node);
|
||||||
|
iso_image_unref(image);
|
||||||
|
image= NULL;
|
||||||
if(ret != 1)
|
if(ret != 1)
|
||||||
goto no_boot;
|
goto no_boot;
|
||||||
ret= Xorriso_path_from_node(xorriso, NULL, xorriso->loaded_boot_bin_lba,
|
ret= Xorriso_path_from_node(xorriso, NULL, xorriso->loaded_boot_bin_lba,
|
||||||
|
Loading…
Reference in New Issue
Block a user