]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix a memory leak.
authorBruno Haible <bruno@clisp.org>
Thu, 23 Jan 2003 12:06:09 +0000 (12:06 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:08:57 +0000 (12:08 +0200)
src/ChangeLog
src/format-c.c

index fd646ce912d9b97f03f145a79e244a568d6a9773..eb67bd1a5babeb30b75898bc559520923e883602 100644 (file)
@@ -1,3 +1,8 @@
+2003-01-23  Bruno Haible  <bruno@clisp.org>
+
+       * format-c.c (get_c99_format_directives): Free the allocated
+       descriptor after use.
+
 2003-01-18  Bruno Haible  <bruno@clisp.org>
 
        * FILES: Update.
index ad9b3e616ed050ee75b7aae42e1582202cc5c0a1..81300ca2ebe6e54ffbbd5179266375a18b06c233 100644 (file)
@@ -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 <haible@clisp.cons.org>, 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);
 }