From 6fdf7a5faebfa766689e42c8f908c16e466b2cc2 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sat, 26 May 2012 21:25:14 +0000 Subject: [PATCH] Closed a memory leak about system area buffer. Found by valgrind. --- libisoburn/isoburn.c | 2 ++ xorriso/xorriso_timestamp.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libisoburn/isoburn.c b/libisoburn/isoburn.c index d9a453fd..c7ac8a3f 100644 --- a/libisoburn/isoburn.c +++ b/libisoburn/isoburn.c @@ -1089,6 +1089,8 @@ int isoburn_igopt_destroy(struct isoburn_imgen_opts **o, int flag) for(i= 0; i < Libisoburn_max_appended_partitionS; i++) if((*o)->appended_partitions[i] != NULL) free((*o)->appended_partitions[i]); + if ((*o)->system_area_data != NULL) + free((*o)->system_area_data); free(*o); *o= NULL; return(1); diff --git a/xorriso/xorriso_timestamp.h b/xorriso/xorriso_timestamp.h index a5400014..1cc54504 100644 --- a/xorriso/xorriso_timestamp.h +++ b/xorriso/xorriso_timestamp.h @@ -1 +1 @@ -#define Xorriso_timestamP "2012.05.25.190220" +#define Xorriso_timestamP "2012.05.26.212559"