Closed memory leak in telltoc. Coverity CID 21812.
This commit is contained in:
parent
b0a4bf4613
commit
772d01f2b1
@ -1 +1 @@
|
|||||||
#define Cdrskin_timestamP "2015.10.24.075251"
|
#define Cdrskin_timestamP "2015.10.24.080544"
|
||||||
|
@ -245,7 +245,7 @@ int telltoc_media(struct burn_drive *drive)
|
|||||||
off_t available = 0;
|
off_t available = 0;
|
||||||
enum burn_disc_status s;
|
enum burn_disc_status s;
|
||||||
char profile_name[80], speed_unit[40];
|
char profile_name[80], speed_unit[40];
|
||||||
struct burn_multi_caps *caps;
|
struct burn_multi_caps *caps = NULL;
|
||||||
struct burn_write_opts *o = NULL;
|
struct burn_write_opts *o = NULL;
|
||||||
|
|
||||||
printf("Media current: ");
|
printf("Media current: ");
|
||||||
@ -380,6 +380,8 @@ int telltoc_media(struct burn_drive *drive)
|
|||||||
}
|
}
|
||||||
printf("Speed unit 1x: %s\n", speed_unit);
|
printf("Speed unit 1x: %s\n", speed_unit);
|
||||||
|
|
||||||
|
if (caps != NULL)
|
||||||
|
burn_disc_free_multi_caps(&caps);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user