From e41e6c2040a74d1750ae33a9f1436d02d7725d9d Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Thu, 15 Oct 2015 17:05:07 +0000 Subject: [PATCH] Closed memory leak with acquiration of drive --- libisoburn/trunk/xorriso/drive_mgt.c | 3 +++ libisoburn/trunk/xorriso/xorriso_timestamp.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libisoburn/trunk/xorriso/drive_mgt.c b/libisoburn/trunk/xorriso/drive_mgt.c index 57f5c6b3..03d484ca 100644 --- a/libisoburn/trunk/xorriso/drive_mgt.c +++ b/libisoburn/trunk/xorriso/drive_mgt.c @@ -363,6 +363,8 @@ int Xorriso_aquire_drive(struct XorrisO *xorriso, char *adr, char *show_adr, volset= isoburn_get_attached_image(drive); if(volset != NULL) { ret= iso_image_set_truncate_mode(volset, 1, xorriso->file_name_limit); + iso_image_unref(volset); + volset= NULL; Xorriso_process_msg_queues(xorriso,0); if(ret < 0) {ret= 0; goto ex;} @@ -410,6 +412,7 @@ int Xorriso_aquire_drive(struct XorrisO *xorriso, char *adr, char *show_adr, volset= isoburn_get_attached_image(drive); if(volset != NULL) { /* The image object is already created */ iso_image_unref(volset); + volset= NULL; } } diff --git a/libisoburn/trunk/xorriso/xorriso_timestamp.h b/libisoburn/trunk/xorriso/xorriso_timestamp.h index b6190693..8fe75b93 100644 --- a/libisoburn/trunk/xorriso/xorriso_timestamp.h +++ b/libisoburn/trunk/xorriso/xorriso_timestamp.h @@ -1 +1 @@ -#define Xorriso_timestamP "2015.09.28.141723" +#define Xorriso_timestamP "2015.10.15.170642"