cvs: TSRM(PHP_5_1) / TSRM.c
| From: | Sara Golemon | Date: | Mon, 29 Aug 2005 22:05:28 +0000 |
| Subject: | cvs: TSRM(PHP_5_1) / TSRM.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-4076@lists.php.net to get a copy of this message | ||
pollita Mon Aug 29 18:05:28 2005 EDT
Modified files: (Branch: PHP_5_1)
/TSRM TSRM.c
Log:
MFH: allocate_new_resource() handles the malloc() for us. Don't leak by mallocing twice.
http://cvs.php.net/diff.php/TSRM/TSRM.c?r1=1.68&r2=1.68.2.1&ty=u
Index: TSRM/TSRM.c
diff -u TSRM/TSRM.c:1.68 TSRM/TSRM.c:1.68.2.1
--- TSRM/TSRM.c:1.68 Sat Jul 16 07:38:40 2005
+++ TSRM/TSRM.c Mon Aug 29 18:05:25 2005
@@ -430,7 +430,6 @@
current = tsrm_tls_get();
- new_ctx = malloc(sizeof(*new_ctx));
allocate_new_resource(&new_ctx, thread_id);
/* switch back to the context that was in use prior to our creation