From: Bruno Haible Date: Thu, 23 Jan 2003 12:06:09 +0000 (+0000) Subject: Fix a memory leak. X-Git-Tag: v0.12~1162 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a86546ead2f61f418f03eb9590a7a4aa7632ea14;p=thirdparty%2Fgettext.git Fix a memory leak. --- diff --git a/src/ChangeLog b/src/ChangeLog index fd646ce91..eb67bd1a5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2003-01-23 Bruno Haible + + * format-c.c (get_c99_format_directives): Free the allocated + descriptor after use. + 2003-01-18 Bruno Haible * FILES: Update. diff --git a/src/format-c.c b/src/format-c.c index ad9b3e616..81300ca2e 100644 --- a/src/format-c.c +++ b/src/format-c.c @@ -1,5 +1,5 @@ /* C format strings. - Copyright (C) 2001-2002 Free Software Foundation, Inc. + Copyright (C) 2001-2003 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software; you can redistribute it and/or modify @@ -795,6 +795,9 @@ get_c99_format_directives (const char *string, *intervalsp = NULL; *lengthp = 0; } + + if (descr != NULL) + format_free (descr); }