From 81b9f55a3b231cef27073d02098178895386077d Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 3 Nov 2007 22:00:16 +0100 Subject: [PATCH] aft.c: Fix a possible memory leak. --- aft.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aft.c b/aft.c index 6010d5de..9fca561c 100644 --- a/aft.c +++ b/aft.c @@ -733,9 +733,9 @@ int open_and_update_audio_file(struct osl_row *aft_row, aced.old_afsi = &old_afsi; afs_event(AFSI_CHANGE, NULL, &aced); ret = save_afd(afd); + free(afd->afhi.chunk_table); if (ret < 0) goto err; - free(afd->afhi.chunk_table); err: osl_close_disk_object(&chunk_table_obj); return ret; -- 2.39.5