cvs: php4 /ext/standard pack.c

From: Date: Tue, 13 Aug 2002 23:12:55 +0000
Subject: cvs: php4 /ext/standard pack.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-13333@lists.php.net to get a copy of this message
kalowsky Tue Aug 13 19:12:55 2002 EDT Modified files: /php4/ext/standard pack.c Log: Fixed another memory leak, patch provided by Ilia <ilia@prohost.org> Index: php4/ext/standard/pack.c diff -u php4/ext/standard/pack.c:1.38 php4/ext/standard/pack.c:1.39 --- php4/ext/standard/pack.c:1.38 Tue Aug 13 17:56:39 2002 +++ php4/ext/standard/pack.c Tue Aug 13 19:12:54 2002 @@ -15,7 +15,7 @@ | Author: Chris Schneider <cschneid@relog.ch> | +----------------------------------------------------------------------+ */ -/* $Id: pack.c,v 1.38 2002/08/13 21:56:39 kalowsky Exp $ */ +/* $Id: pack.c,v 1.39 2002/08/13 23:12:54 kalowsky Exp $ */ #include "php.h" @@ -521,7 +521,7 @@ inputpos = 0; if (array_init(return_value) == FAILURE) - return; + RETURN_FALSE; while (formatlen-- > 0) { char type = *(format++); @@ -812,6 +812,7 @@ break; } else { php_error(E_WARNING, "pack type %c: not enough input, need %d, have %d", type, size, inputlen - inputpos); + zval_dtor(return_value); RETURN_FALSE; } }

« previous php.cvs (#13333) next »