Fixed a small memory leak in case of failed ISO image reading
This commit is contained in:
parent
c720203420
commit
5ab4f14c04
@ -317,13 +317,14 @@ displacement_rollover:;
|
|||||||
read_opts->hasIso1999 = iso_read_image_features_has_iso1999(features);
|
read_opts->hasIso1999 = iso_read_image_features_has_iso1999(features);
|
||||||
read_opts->hasElTorito = iso_read_image_features_has_eltorito(features);
|
read_opts->hasElTorito = iso_read_image_features_has_eltorito(features);
|
||||||
read_opts->size = iso_read_image_features_get_size(features);
|
read_opts->size = iso_read_image_features_get_size(features);
|
||||||
iso_read_image_features_destroy(features);
|
|
||||||
ret= 1;
|
ret= 1;
|
||||||
ex:;
|
ex:;
|
||||||
if(msg != NULL)
|
if(msg != NULL)
|
||||||
free(msg);
|
free(msg);
|
||||||
if(ropts != NULL)
|
if(ropts != NULL)
|
||||||
iso_read_opts_free(ropts);
|
iso_read_opts_free(ropts);
|
||||||
|
if(features != NULL)
|
||||||
|
iso_read_image_features_destroy(features);
|
||||||
return(ret);
|
return(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
#define Xorriso_timestamP "2012.04.11.163237"
|
#define Xorriso_timestamP "2012.04.19.073152"
|
||||||
|
Loading…
Reference in New Issue
Block a user