From 997934c28b552b1e99a9c8cb47025289182124f7 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Tue, 6 Nov 2007 16:39:59 +0000 Subject: [PATCH] Closed memory leak by freeing session and track in isoburn_prepare_disc_aux() --- libisoburn/trunk/src/isoburn.c | 4 ++++ libisoburn/trunk/test/xorriso_timestamp.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libisoburn/trunk/src/isoburn.c b/libisoburn/trunk/src/isoburn.c index c58ea2ab..9b643284 100644 --- a/libisoburn/trunk/src/isoburn.c +++ b/libisoburn/trunk/src/isoburn.c @@ -314,6 +314,10 @@ int isoburn_prepare_disc_aux(struct burn_drive *d, struct burn_disc **disc, burn_track_set_source(track, o->fifo); burn_session_add_track(session, track, BURN_POS_END); + /* give up local references */ + burn_track_free(track); + burn_session_free(session); + o->wrote_well= -1; /* neutral */ return 1; } diff --git a/libisoburn/trunk/test/xorriso_timestamp.h b/libisoburn/trunk/test/xorriso_timestamp.h index 30629a2f..0edf9a82 100644 --- a/libisoburn/trunk/test/xorriso_timestamp.h +++ b/libisoburn/trunk/test/xorriso_timestamp.h @@ -1 +1 @@ -#define Xorriso_timestamP "2007.11.06.163929" +#define Xorriso_timestamP "2007.11.06.164029"