Closed a memory leak about -print_size, found by valgrind
This commit is contained in:
parent
141c739556
commit
cdcd253096
@ -616,7 +616,7 @@ int Xorriso_write_session(struct XorrisO *xorriso, int flag)
|
|||||||
struct burn_drive_info *dinfo, *source_dinfo;
|
struct burn_drive_info *dinfo, *source_dinfo;
|
||||||
struct burn_drive *drive, *source_drive;
|
struct burn_drive *drive, *source_drive;
|
||||||
struct burn_disc *disc= NULL;
|
struct burn_disc *disc= NULL;
|
||||||
struct burn_write_opts *burn_options;
|
struct burn_write_opts *burn_options= NULL;
|
||||||
off_t readcounter= 0,writecounter= 0;
|
off_t readcounter= 0,writecounter= 0;
|
||||||
int num_sessions= 0, num_tracks= 0;
|
int num_sessions= 0, num_tracks= 0;
|
||||||
struct burn_session **sessions;
|
struct burn_session **sessions;
|
||||||
@ -1013,6 +1013,7 @@ fprintf(stderr, "XORRISO_DEBUG: isoburn_igopt_set_tail_blocks(%d)\n",
|
|||||||
xorriso->run_state= 1; /* Indicate that burning has started */
|
xorriso->run_state= 1; /* Indicate that burning has started */
|
||||||
isoburn_disc_write(burn_options, disc);
|
isoburn_disc_write(burn_options, disc);
|
||||||
burn_write_opts_free(burn_options);
|
burn_write_opts_free(burn_options);
|
||||||
|
burn_options= NULL;
|
||||||
|
|
||||||
ret= Xorriso_pacifier_loop(xorriso, drive, pacifier_speed << 4);
|
ret= Xorriso_pacifier_loop(xorriso, drive, pacifier_speed << 4);
|
||||||
if(burn_is_aborting(0))
|
if(burn_is_aborting(0))
|
||||||
@ -1077,6 +1078,8 @@ ex:;
|
|||||||
if(image != NULL)
|
if(image != NULL)
|
||||||
iso_image_unref(image);
|
iso_image_unref(image);
|
||||||
isoburn_igopt_destroy(&sopts, 0);
|
isoburn_igopt_destroy(&sopts, 0);
|
||||||
|
if(burn_options != NULL)
|
||||||
|
burn_write_opts_free(burn_options);
|
||||||
Xorriso_process_msg_queues(xorriso,0);
|
Xorriso_process_msg_queues(xorriso,0);
|
||||||
Xorriso_append_scdbackup_record(xorriso, 0);
|
Xorriso_append_scdbackup_record(xorriso, 0);
|
||||||
Xorriso_free_meM(sfe);
|
Xorriso_free_meM(sfe);
|
||||||
|
@ -1 +1 @@
|
|||||||
#define Xorriso_timestamP "2012.05.31.071033"
|
#define Xorriso_timestamP "2012.06.05.103058"
|
||||||
|
Loading…
Reference in New Issue
Block a user