Closed a memory leak about system area buffer. Found by valgrind.
This commit is contained in:
parent
059d891b39
commit
f7a81bb349
@ -1089,6 +1089,8 @@ int isoburn_igopt_destroy(struct isoburn_imgen_opts **o, int flag)
|
|||||||
for(i= 0; i < Libisoburn_max_appended_partitionS; i++)
|
for(i= 0; i < Libisoburn_max_appended_partitionS; i++)
|
||||||
if((*o)->appended_partitions[i] != NULL)
|
if((*o)->appended_partitions[i] != NULL)
|
||||||
free((*o)->appended_partitions[i]);
|
free((*o)->appended_partitions[i]);
|
||||||
|
if ((*o)->system_area_data != NULL)
|
||||||
|
free((*o)->system_area_data);
|
||||||
free(*o);
|
free(*o);
|
||||||
*o= NULL;
|
*o= NULL;
|
||||||
return(1);
|
return(1);
|
||||||
|
@ -1 +1 @@
|
|||||||
#define Xorriso_timestamP "2012.05.25.190220"
|
#define Xorriso_timestamP "2012.05.26.212559"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user