cvs: /php3/functions pdf.c
| From: | Uwe Steinmann | Date: | Tue, 14 Sep 1999 14:49:11 +0000 |
| Subject: | cvs: /php3/functions pdf.c | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-10895@lists.php.net to get a copy of this message | ||
steinm Tue Sep 14 10:49:11 1999 EDT
Modified files:
/php3/functions pdf.c
Log:
- fixed another small memory leak in pdf_add_bookmark()
Index: php3/functions/pdf.c
diff -u php3/functions/pdf.c:1.52 php3/functions/pdf.c:1.53
--- php3/functions/pdf.c:1.52 Tue Sep 14 07:26:11 1999
+++ php3/functions/pdf.c Tue Sep 14 10:49:11 1999
@@ -27,7 +27,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: pdf.c,v 1.52 1999/09/14 11:26:11 steinm Exp $ */
+/* $Id: pdf.c,v 1.53 1999/09/14 14:49:11 steinm Exp $ */
/* pdflib 0.6 is subject to the ALADDIN FREE PUBLIC LICENSE.
Copyright (C) 1997 Thomas Merz. */
@@ -217,6 +217,7 @@
#if HAVE_PDFLIB2
static void _free_outline(int *outline)
{
+ if(outline) efree(outline);
}
#endif
@@ -2045,7 +2046,7 @@
}
outline=emalloc(sizeof(int));
- *outline = PDF_add_bookmark(pdf, estrdup(arg2->value.str.val), parentid, open);
+ *outline = PDF_add_bookmark(pdf, arg2->value.str.val, parentid, open);
id = php3_list_insert(outline,PDF_GLOBAL(le_outline));
RETURN_LONG(id);
#else