]> granicus.if.org Git - php/commitdiff
use FREE_ZVAL() instead of free() to free a zval
authorNuno Lopes <nlopess@php.net>
Sat, 29 Sep 2007 11:24:05 +0000 (11:24 +0000)
committerNuno Lopes <nlopess@php.net>
Sat, 29 Sep 2007 11:24:05 +0000 (11:24 +0000)
ext/openssl/xp_ssl.c

index 3e276c4f979233a6ecc1637e45eb2e3f50509d19..0b36009269808aaee1256cef13896191f8bdd64f 100644 (file)
@@ -464,7 +464,7 @@ static inline int php_openssl_enable_crypto(php_stream *stream,
                                                                "ssl", "peer_certificate",
                                                                zcert);
                                                peer_cert = NULL;
-                                               efree(zcert);
+                                               FREE_ZVAL(zcert);
                                        }
 
                                        if (SUCCESS == php_stream_context_get_option(
@@ -490,7 +490,7 @@ static inline int php_openssl_enable_crypto(php_stream *stream,
                                                                                zend_list_insert(mycert,
                                                                                        php_openssl_get_x509_list_id()));
                                                                add_next_index_zval(arr, zcert);
-                                                               efree(zcert);
+                                                               FREE_ZVAL(zcert);
                                                        }
 
                                                } else {