From dfeefaa5fc9c76632b86af0442c9d41cc7c97682 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Fri, 23 Oct 2015 16:24:55 +0000 Subject: [PATCH] Closed a potential memory leak with CD-TEXT production. Coverity CID 21809. --- cdrskin/cdrskin_timestamp.h | 2 +- libburn/options.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cdrskin/cdrskin_timestamp.h b/cdrskin/cdrskin_timestamp.h index 04901f8..e615bdd 100644 --- a/cdrskin/cdrskin_timestamp.h +++ b/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2015.10.23.160546" +#define Cdrskin_timestamP "2015.10.23.162527" diff --git a/libburn/options.c b/libburn/options.c index ca88ea9..7cc0a53 100644 --- a/libburn/options.c +++ b/libburn/options.c @@ -278,10 +278,12 @@ int burn_write_opts_set_leadin_text(struct burn_write_opts *opts, if (num_packs > 0) { memcpy(pack_buffer, text_packs, num_packs * 18); opts->text_packs = pack_buffer; + pack_buffer = NULL; } opts->num_text_packs = num_packs; ret = 1; ex:; + BURN_FREE_MEM(pack_buffer); return ret; }