Closed memory leak with acquiration of drive

master
Thomas Schmitt 7 years ago
parent 32d2817e15
commit 526494e8ce
  1. 3
      xorriso/drive_mgt.c
  2. 2
      xorriso/xorriso_timestamp.h

@ -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;
}
}

@ -1 +1 @@
#define Xorriso_timestamP "2015.09.28.141723"
#define Xorriso_timestamP "2015.10.15.170642"

Loading…
Cancel
Save