Closed memory leaks found by valgrind

This commit is contained in:
Thomas Schmitt 2011-05-03 08:54:38 +00:00
parent a069482295
commit 59e46ea5d9
2 changed files with 10 additions and 4 deletions

View File

@ -1628,10 +1628,10 @@ int Xorriso_burn_track(struct XorrisO *xorriso, off_t write_start_address,
int isosize= -1, do_isosize, is_bd= 0, signal_mode;
struct burn_drive_info *dinfo;
struct burn_drive *drive;
struct burn_write_opts *burn_options;
struct burn_write_opts *burn_options= NULL;
struct burn_disc *disc= NULL;
struct burn_session *session;
struct burn_track *track;
struct burn_session *session= NULL;
struct burn_track *track= NULL;
struct stat stbuf;
off_t fixed_size= 0;
struct burn_source *data_src= NULL, *fifo_src= NULL;
@ -1861,6 +1861,12 @@ ex:;
Xorriso_process_msg_queues(xorriso,0);
if(disc!=NULL)
burn_disc_free(disc);
if(session != NULL)
burn_session_free(session);
if(track != NULL)
burn_track_free(track);
if(burn_options != NULL)
burn_write_opts_free(burn_options);
if(xorriso->pacifier_fifo!=NULL)
burn_source_free(xorriso->pacifier_fifo);
xorriso->pacifier_fifo= NULL;

View File

@ -1 +1 @@
#define Xorriso_timestamP "2011.05.03.063012"
#define Xorriso_timestamP "2011.05.03.085459"