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

1.4.2
Thomas Schmitt 7 years ago
parent dfeefaa5fc
commit b212205b0b
  1. 2
      cdrskin/cdrskin_timestamp.h
  2. 4
      libburn/write.c

@ -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…
Cancel
Save