Browse Source

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

1.4.2
Thomas Schmitt 7 years ago
parent
commit
dfeefaa5fc
  1. 2
      cdrskin/cdrskin_timestamp.h
  2. 2
      libburn/options.c

2
cdrskin/cdrskin_timestamp.h

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

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

Loading…
Cancel
Save