]> 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 220d5892e0bde484667ab88f675167657fbac3c6..a3e06c9c820e8a8fdeddf469a606b93bbba39437 100644 (file)
@@ -2377,7 +2377,7 @@ static void _php_curl_close_ex(php_curl *ch TSRMLS_DC)
        if (Z_REFCOUNT_P(ch->clone) <= 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 {
                Z_DELREF_P(ch->clone);
                ch->to_free.slist.dtor = NULL;