cvs: /php4/ext/hyperwave hg_comm.c
| From: | Uwe Steinmann | Date: | Tue, 07 Mar 2000 14:53:31 +0000 |
| Subject: | cvs: /php4/ext/hyperwave hg_comm.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-11677@lists.php.net to get a copy of this message | ||
steinm Tue Mar 7 06:53:31 2000 EDT
Modified files:
/php4/ext/hyperwave hg_comm.c
Log:
- some cleanups and fixed memory leak
Index: php4/ext/hyperwave/hg_comm.c
diff -u php4/ext/hyperwave/hg_comm.c:1.23 php4/ext/hyperwave/hg_comm.c:1.24
--- php4/ext/hyperwave/hg_comm.c:1.23 Tue Mar 7 05:16:00 2000
+++ php4/ext/hyperwave/hg_comm.c Tue Mar 7 06:53:01 2000
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: hg_comm.c,v 1.23 2000/03/07 13:16:00 steinm Exp $ */
+/* $Id: hg_comm.c,v 1.24 2000/03/07 14:53:01 steinm Exp $ */
/* #define HW_DEBUG */
@@ -239,7 +239,7 @@
while(cur_ptr) {
#endif
- fprintf(stderr, "0x%X->0x%X ", ptr, cur_ptr);
+ fprintf(stderr, "0x%X->0x%X ", (int) ptr, (int) cur_ptr);
fprintf(stderr, "%d, %d, %s, %s, %s, %s %s\n", cur_ptr->start,
cur_ptr->end,
cur_ptr->tanchor == 1 ? "src" :
"dest",
@@ -270,8 +270,8 @@
{
ANCHOR *a1, **aa1, *a2, **aa2;
zend_llist_element **ee1, **ee2;
- ee1 = e1;
- ee2 = e2;
+ ee1 = (zend_llist_element **) e1;
+ ee2 = (zend_llist_element **) e2;
aa1 = (ANCHOR **) (*ee1)->data;
aa2 = (ANCHOR **) (*ee2)->data;
a1 = *aa1;
@@ -3290,6 +3290,7 @@
efree(reldestptr);
return -1;
}
+
reldestptr[i] = docofanchorptr;
/* if we can't get the object rec of the dest, than this document
is probably not accessible for us. For later functions simply
@@ -3377,6 +3378,7 @@
/* fprintf(stderr, "%s\n", anchorstr); */
efree(retthisIDs);
efree(retdestIDs);
+ efree(reldestptr[i]);
reldestptr[i] = estrdup(anchorstr);
}
} else {