From 43c49f046f830444c06b0c836cd51c90c1add7f6 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Mon, 7 Jan 2013 21:57:49 +0000 Subject: [PATCH] Closed memory leaks found by valgrind --- libisoburn/trunk/xorriso/disk_ops.c | 1 + libisoburn/trunk/xorriso/text_io.c | 2 ++ libisoburn/trunk/xorriso/xorriso_timestamp.h | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libisoburn/trunk/xorriso/disk_ops.c b/libisoburn/trunk/xorriso/disk_ops.c index c2388f14..67f6a84d 100644 --- a/libisoburn/trunk/xorriso/disk_ops.c +++ b/libisoburn/trunk/xorriso/disk_ops.c @@ -775,6 +775,7 @@ ex:; free((char *) current); } Xorriso_free_meM(name); + Dirseq_destroy(&dirseq, 0); return(ret); } diff --git a/libisoburn/trunk/xorriso/text_io.c b/libisoburn/trunk/xorriso/text_io.c index 38afdeb1..ee9c4966 100644 --- a/libisoburn/trunk/xorriso/text_io.c +++ b/libisoburn/trunk/xorriso/text_io.c @@ -3613,6 +3613,8 @@ int Xorriso_msg_op_parse(struct XorrisO *xorriso, char *line, Sfile_str(xorriso->result_line, text_pt, 0); strcat(xorriso->result_line, "\n"); Xorriso_result(xorriso, 1); + Xorriso_free_meM(text); + text= NULL; } } else { sprintf(xorriso->result_line, "0\n"); diff --git a/libisoburn/trunk/xorriso/xorriso_timestamp.h b/libisoburn/trunk/xorriso/xorriso_timestamp.h index b6350e74..df015668 100644 --- a/libisoburn/trunk/xorriso/xorriso_timestamp.h +++ b/libisoburn/trunk/xorriso/xorriso_timestamp.h @@ -1 +1 @@ -#define Xorriso_timestamP "2013.01.07.190934" +#define Xorriso_timestamP "2013.01.07.215658"