Closed a potential memory leak with writing to stdio pseudo drives. Coverity CID 21810.

This commit is contained in:
Thomas Schmitt 2015-10-23 16:47:30 +00:00
parent 8c23b95f5a
commit 016d068838
2 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2015.10.23.162527"
#define Cdrskin_timestamP "2015.10.23.164931"

View File

@ -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:;