]> granicus.if.org Git - php/commitdiff
- Making Valgrind happy
authorFelipe Pena <felipe@php.net>
Sat, 25 Jul 2009 20:39:01 +0000 (20:39 +0000)
committerFelipe Pena <felipe@php.net>
Sat, 25 Jul 2009 20:39:01 +0000 (20:39 +0000)
ext/curl/interface.c

index 6b84e5330c89c0249e10ea773235cfd4f1814f86..a431522d442d2861cc9f4493973a597127fb46c2 100644 (file)
@@ -2086,7 +2086,7 @@ static void _php_curl_close_ex(php_curl *ch TSRMLS_DC)
        if (ch->clone->refcount <= 1) {
                zend_llist_clean(&ch->to_free.slist);
                zend_llist_clean(&ch->to_free.post);
-               zval_ptr_dtor(&ch->clone);
+               FREE_ZVAL(ch->clone);
        } else {
                ch->clone->refcount--;
                ch->to_free.slist.dtor = NULL;