Closed memory leak in telltoc. Coverity CID 21812.

This commit is contained in:
Thomas Schmitt 2015-10-24 08:03:44 +00:00
parent b0a4bf4613
commit 772d01f2b1
2 changed files with 4 additions and 2 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2015.10.24.075251"
#define Cdrskin_timestamP "2015.10.24.080544"

View File

@ -245,7 +245,7 @@ int telltoc_media(struct burn_drive *drive)
off_t available = 0;
enum burn_disc_status s;
char profile_name[80], speed_unit[40];
struct burn_multi_caps *caps;
struct burn_multi_caps *caps = NULL;
struct burn_write_opts *o = NULL;
printf("Media current: ");
@ -380,6 +380,8 @@ int telltoc_media(struct burn_drive *drive)
}
printf("Speed unit 1x: %s\n", speed_unit);
if (caps != NULL)
burn_disc_free_multi_caps(&caps);
return 1;
}