cvs: php4 /ext/imap php_imap.c

From: Date: Mon, 12 Feb 2001 11:57:22 +0000
Subject: cvs: php4 /ext/imap php_imap.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-3985@lists.php.net to get a copy of this message
thies Mon Feb 12 03:57:22 2001 EDT Modified files: /php4/ext/imap php_imap.c Log: fixed possible leak in imap_search Index: php4/ext/imap/php_imap.c diff -u php4/ext/imap/php_imap.c:1.54 php4/ext/imap/php_imap.c:1.55 --- php4/ext/imap/php_imap.c:1.54 Sun Jan 7 04:22:50 2001 +++ php4/ext/imap/php_imap.c Mon Feb 12 03:57:22 2001 @@ -25,7 +25,7 @@ | PHP 4.0 updates: Zeev Suraski <zeev@zend.com> | +----------------------------------------------------------------------+ */ -/* $Id: php_imap.c,v 1.54 2001/01/07 12:22:50 sas Exp $ */ +/* $Id: php_imap.c,v 1.55 2001/02/12 11:57:22 thies Exp $ */ #define IMAP41 @@ -3442,12 +3442,14 @@ imap_le_struct = (pils *) zend_list_find(ind, &ind_type); if (!imap_le_struct || !IS_STREAM(ind_type)) { php_error(E_WARNING, "Unable to find stream pointer"); + efree(search_criteria); RETURN_FALSE; } IMAPG(imap_messages) = NIL; mail_search_full(imap_le_struct->imap_stream, NIL, mail_criteria(search_criteria), flags); if (IMAPG(imap_messages) == NIL) { + efree(search_criteria); RETURN_FALSE; }

« previous php.cvs (#3985) next »