summaryrefslogtreecommitdiff
path: root/ext/openssl
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2007-07-11 07:36:12 +0000
committerDmitry Stogov <dmitry@php.net>2007-07-11 07:36:12 +0000
commitf765f73e5f69632a805ea2d10eb0d4163c34ea1b (patch)
tree7c45bb1e1f463f2cd4d7052e2725ca21e26aead6 /ext/openssl
parent2821378c331cbc189e7ea7d2bc35feee4eb97937 (diff)
downloadphp-git-f765f73e5f69632a805ea2d10eb0d4163c34ea1b.tar.gz
Fixed memory leak
Diffstat (limited to 'ext/openssl')
-rw-r--r--ext/openssl/openssl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c
index 41294f979a..d33bd38409 100644
--- a/ext/openssl/openssl.c
+++ b/ext/openssl/openssl.c
@@ -2608,6 +2608,7 @@ PHP_FUNCTION(openssl_pkey_export)
RETVAL_TRUE;
bio_mem_len = BIO_get_mem_data(bio_out, &bio_mem_ptr);
+ zval_dtor(out);
ZVAL_STRINGL(out, bio_mem_ptr, bio_mem_len, 1);
}
}