Closed a potential memory leak with writing to stdio pseudo drives. Coverity CID 21810.
This commit is contained in:
parent
dfeefaa5fc
commit
b212205b0b
@ -1 +1 @@
|
||||
#define Cdrskin_timestamP "2015.10.23.162527"
|
||||
#define Cdrskin_timestamP "2015.10.23.164931"
|
||||
|
@ -2698,7 +2698,7 @@ int burn_stdio_sync_cache(int fd, struct burn_drive *d, int flag)
|
||||
"Invalid file descriptor with stdio pseudo-drive",
|
||||
0, 0);
|
||||
d->cancel = 1;
|
||||
return 0;
|
||||
ret = 0; goto ex;
|
||||
}
|
||||
d->needs_sync_cache = 0;
|
||||
do_fsync = 0;
|
||||
@ -2726,7 +2726,7 @@ int burn_stdio_sync_cache(int fd, struct burn_drive *d, int flag)
|
||||
LIBDAX_MSGS_SEV_SORRY, LIBDAX_MSGS_PRIO_HIGH,
|
||||
msg, errno, 0);
|
||||
d->cancel = 1;
|
||||
return 0;
|
||||
ret = 0; goto ex;
|
||||
}
|
||||
ret = 1;
|
||||
ex:;
|
||||
|
Loading…
Reference in New Issue
Block a user