fix leak: chain was not being freed in one error case
authorJosh Coalson <jcoalson@users.sourceforce.net>
Tue, 19 Oct 2004 04:23:57 +0000 (04:23 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Tue, 19 Oct 2004 04:23:57 +0000 (04:23 +0000)
src/metaflac/operations.c

index 89dc6fb40ca52114bf41414c704749f7cd27e3e2..a19e9e13d9605ce274e86b8ddf1848a5a5b7ec0d 100644 (file)
@@ -110,6 +110,7 @@ FLAC__bool do_major_operation_on_file(const char *filename, const CommandLineOpt
 
        if(!FLAC__metadata_chain_read(chain, filename)) {
                print_error_with_chain_status(chain, "%s: ERROR: reading metadata", filename);
+               FLAC__metadata_chain_delete(chain);
                return false;
        }