afh: Fix memory leak.
authorAndre Noll <maan@systemlinux.org>
Sat, 19 Sep 2009 08:18:14 +0000 (10:18 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 19 Sep 2009 08:18:14 +0000 (10:18 +0200)
afh.c

diff --git a/afh.c b/afh.c
index fad93c4..8e1e6b3 100644 (file)
--- a/afh.c
+++ b/afh.c
@@ -168,6 +168,8 @@ int main(int argc, char **argv)
                                print_chunk_table(&afhi);
                        printf("\n");
                }
+               free(afhi.chunk_table);
+               free(afhi.info_string);
                ret2 = para_munmap(audio_file_data, audio_file_size);
                if (ret2 < 0 && ret >= 0)
                        ret = ret2;