Fix little leak thanks to James G.
authorMartin Pycko <martinp@digium.com>
Mon, 7 Apr 2003 16:22:53 +0000 (16:22 +0000)
committerMartin Pycko <martinp@digium.com>
Mon, 7 Apr 2003 16:22:53 +0000 (16:22 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@767 65c4cc65-6c06-0410-ace0-fbb531ad65f3

config.c

index 1ce10de..21c8fb9 100755 (executable)
--- a/config.c
+++ b/config.c
@@ -66,6 +66,7 @@ static void free_comments(struct ast_comment *com)
        while (com) {
                l = com;
                com = com->next;
        while (com) {
                l = com;
                com = com->next;
+               free(l->comment);
                free(l);
        }
 }
                free(l);
        }
 }