Bug fix: Closed memory leak with failure to open device file under FreeBSD. Thanks to George Danchev.
This commit is contained in:
parent
4ff9053d68
commit
2027b86361
@ -1 +1 @@
|
||||
#define Cdrskin_timestamP "2009.10.27.100637"
|
||||
#define Cdrskin_timestamP "2009.10.27.101031"
|
||||
|
@ -72,6 +72,8 @@ static int sg_init_enumerator(burn_drive_enumerator_t *idx_)
|
||||
|
||||
if ((idx->fd = open(XPT_DEVICE, O_RDWR)) == -1) {
|
||||
warn("couldn't open %s", XPT_DEVICE);
|
||||
free(idx);
|
||||
idx = NULL;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user