From 302547406c9bac2ec9243ab7ec887a23c314a38b Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Tue, 3 Nov 2015 14:56:20 +0000 Subject: [PATCH] Closed memory leak with error about -check_media sector bitmapCoverity CID 28751. --- xorriso/check_media.c | 6 +++--- xorriso/xorriso_timestamp.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/xorriso/check_media.c b/xorriso/check_media.c index 43216198..6f533e45 100644 --- a/xorriso/check_media.c +++ b/xorriso/check_media.c @@ -1,7 +1,7 @@ /* xorriso - creates, loads, manipulates and burns ISO 9660 filesystem images. - Copyright 2007-2014 Thomas Schmitt, + Copyright 2007-2015 Thomas Schmitt, Provided under GPL version 2 or later. @@ -385,7 +385,7 @@ int Sectorbitmap_to_file(struct SectorbitmaP *o, char *path, char *info, strcpy(msg, "Cannot open path "); Text_shellsafe(path, msg+strlen(msg), 0); } - return(0); + ret= 0; goto ex; } l= 0; @@ -393,7 +393,7 @@ int Sectorbitmap_to_file(struct SectorbitmaP *o, char *path, char *info, l= strlen(info); if(l > 999999) { strcpy(msg, "Info string is longer than 999999 bytes"); - return(0); + ret= 0; goto ex; } sprintf((char *) buf, "xorriso sector bitmap v2 %-6d\n", l); diff --git a/xorriso/xorriso_timestamp.h b/xorriso/xorriso_timestamp.h index 30f1a9b1..340d1d35 100644 --- a/xorriso/xorriso_timestamp.h +++ b/xorriso/xorriso_timestamp.h @@ -1 +1 @@ -#define Xorriso_timestamP "2015.11.03.140546" +#define Xorriso_timestamP "2015.11.03.145540"