diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2004-02-19 02:19:11 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2004-02-19 02:19:11 +0000 |
commit | 0e692f950664ece1665700a565f4fceec1ecc2a5 (patch) | |
tree | 2ccb0dd4c4d59a332d020dd00956edf4646ec377 /ext/cpdf | |
parent | 4441da2754e106d88dffbb6e42a8b7b0fed65253 (diff) | |
download | php-git-0e692f950664ece1665700a565f4fceec1ecc2a5.tar.gz |
Fixed possible resource/memory leak.
Diffstat (limited to 'ext/cpdf')
-rw-r--r-- | ext/cpdf/cpdf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/cpdf/cpdf.c b/ext/cpdf/cpdf.c index 629e20a9e1..17663ca7a2 100644 --- a/ext/cpdf/cpdf.c +++ b/ext/cpdf/cpdf.c @@ -428,6 +428,7 @@ PHP_FUNCTION(cpdf_open) #endif if (php_check_open_basedir(Z_STRVAL_PP(arg2) TSRMLS_CC) || (PG(safe_mode) && !php_checkuid(Z_STRVAL_PP(arg2), "rb+", CHECKUID_CHECK_MODE_PARAM))) { + cpdf_close(cpdf); RETURN_FALSE; } |