diff options
| author | Dmitry Stogov <dmitry@zend.com> | 2014-05-13 12:47:34 +0400 | 
|---|---|---|
| committer | Dmitry Stogov <dmitry@zend.com> | 2014-05-13 12:47:34 +0400 | 
| commit | 7b1cb4922f42417e5cdb954c54570f9a575d7839 (patch) | |
| tree | 954883e844a3ca8aa066af3a69dbbd0f6bff6265 /ext/ftp/php_ftp.c | |
| parent | 376ab3b7873ca04142185d8c08dbb4c4be152474 (diff) | |
| download | php-git-7b1cb4922f42417e5cdb954c54570f9a575d7839.tar.gz | |
Fixed safe resource close.
It must not de deleted (just closed), because it still may be referenced from zval(s).
This fixes few ext/ftp test memory failures detected with valgrind.
Diffstat (limited to 'ext/ftp/php_ftp.c')
| -rw-r--r-- | ext/ftp/php_ftp.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/ext/ftp/php_ftp.c b/ext/ftp/php_ftp.c index 2badf294ea..46e336deb0 100644 --- a/ext/ftp/php_ftp.c +++ b/ext/ftp/php_ftp.c @@ -1360,7 +1360,7 @@ PHP_FUNCTION(ftp_close)  	ftp_quit(ftp); -	RETURN_BOOL(zend_list_delete(Z_RES_P(z_ftp)) == SUCCESS); +	RETURN_BOOL(zend_list_close(Z_RES_P(z_ftp)) == SUCCESS);  }  /* }}} */ | 
