Browse Source

Closed a memory leak about system area buffer. Found by valgrind.

master
Thomas Schmitt 10 years ago
parent
commit
6fdf7a5fae
  1. 2
      libisoburn/isoburn.c
  2. 2
      xorriso/xorriso_timestamp.h

2
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);

2
xorriso/xorriso_timestamp.h

@ -1 +1 @@
#define Xorriso_timestamP "2012.05.25.190220"
#define Xorriso_timestamP "2012.05.26.212559"

Loading…
Cancel
Save