Fixed a small memory leak in case of failed ISO image reading

This commit is contained in:
Thomas Schmitt 2012-04-19 07:31:18 +00:00
parent c720203420
commit 5ab4f14c04
2 changed files with 3 additions and 2 deletions

View File

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

View File

@ -1 +1 @@
#define Xorriso_timestamP "2012.04.11.163237" #define Xorriso_timestamP "2012.04.19.073152"