From 0983c5c76475d6323700bc0d81a9796001fe9f09 Mon Sep 17 00:00:00 2001 From: Laurent MONIN Date: Fri, 13 Jan 2006 13:58:13 +0100 Subject: [PATCH] Fix a memleak that may occur on systems without alloca(), backport from gettext 0.14.5. --- src/intl/gettext/dcigettext.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/intl/gettext/dcigettext.c b/src/intl/gettext/dcigettext.c index fd0057dfd..d92b86114 100644 --- a/src/intl/gettext/dcigettext.c +++ b/src/intl/gettext/dcigettext.c @@ -240,7 +240,8 @@ struct block_list { do { \ while (list != NULL) { \ struct block_list *old = list; \ - list = list->next; \ + list = list->next; \ + free (old->address); \ free (old); \ } \ } while (0)