metaflac: Fix a memory leak
diff --git a/src/metaflac/operations.c b/src/metaflac/operations.c
index 119d497..952f1d6 100644
--- a/src/metaflac/operations.c
+++ b/src/metaflac/operations.c
@@ -286,7 +286,8 @@
 
 	if(!FLAC__metadata_chain_read(chain, filename)) {
 		print_error_with_chain_status(chain, "%s: ERROR: reading metadata", filename);
-		return false;
+		ok = false;
+		goto cleanup;
 	}
 
 	for(i = 0; i < options->ops.num_operations && ok; i++) {
@@ -325,6 +326,7 @@
 			print_error_with_chain_status(chain, "%s: ERROR: writing FLAC file", filename);
 	}
 
+  cleanup :
 	FLAC__metadata_chain_delete(chain);
 
 	return ok;