Closed potential memory leak introduced by rev 5168

This commit is contained in:
Thomas Schmitt 2013-11-08 09:51:33 +00:00
parent 87ab352d6f
commit 429fed00c1
2 changed files with 3 additions and 1 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2013.10.28.104957" #define Cdrskin_timestamP "2013.11.08.095023"

View File

@ -1364,6 +1364,8 @@ int burn_disc_init_write_status(struct burn_write_opts *o,
burn_track_set_fillup(t, 1); burn_track_set_fillup(t, 1);
d->was_feat21h_failure = 0; d->was_feat21h_failure = 0;
if(d->write_opts != NULL)
burn_write_opts_free(d->write_opts);
ret = burn_write_opts_clone(o, &(d->write_opts), 0); ret = burn_write_opts_clone(o, &(d->write_opts), 0);
if (ret <= 0) if (ret <= 0)
return ret; return ret;