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

This commit is contained in:
Thomas Schmitt 2012-05-26 21:25:14 +00:00
parent 135721a868
commit 6fdf7a5fae
2 changed files with 3 additions and 1 deletions

View File

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

View File

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