Closed a potential memory leak with CD-TEXT production. Coverity CID 21809.

This commit is contained in:
Thomas Schmitt 2015-10-23 16:24:55 +00:00
parent 02a2373f55
commit 8c23b95f5a
2 changed files with 3 additions and 1 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2015.10.23.160546"
#define Cdrskin_timestamP "2015.10.23.162527"

View File

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