From: Andre Noll Date: Sat, 3 Nov 2007 21:00:16 +0000 (+0100) Subject: aft.c: Fix a possible memory leak. X-Git-Tag: v0.3.0~125 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=81b9f55a3b231cef27073d02098178895386077d;p=paraslash.git aft.c: Fix a possible memory leak. --- 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;