From 016d0688381751b606ba1cdee16cf44fc7f581d2 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Fri, 23 Oct 2015 16:47:30 +0000 Subject: [PATCH] Closed a potential memory leak with writing to stdio pseudo drives. Coverity CID 21810. --- libburn/trunk/cdrskin/cdrskin_timestamp.h | 2 +- libburn/trunk/libburn/write.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libburn/trunk/cdrskin/cdrskin_timestamp.h b/libburn/trunk/cdrskin/cdrskin_timestamp.h index e615bddf..785d5ed3 100644 --- a/libburn/trunk/cdrskin/cdrskin_timestamp.h +++ b/libburn/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2015.10.23.162527" +#define Cdrskin_timestamP "2015.10.23.164931" diff --git a/libburn/trunk/libburn/write.c b/libburn/trunk/libburn/write.c index 282d1fbd..ed836db5 100644 --- a/libburn/trunk/libburn/write.c +++ b/libburn/trunk/libburn/write.c @@ -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:;