]> granicus.if.org Git - php/commitdiff
Remove invalid free
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 18 Sep 2018 10:37:12 +0000 (12:37 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 18 Sep 2018 10:38:46 +0000 (12:38 +0200)
The initialization of buffer has been moved further down in 7.3,
so this free is no longer legal.

ext/intl/idn/idn.c

index 1ab1f3f5527610d3ad016b0375778ac293a05919..bd87afcd711eb924a124129a2b5eb83f8e35cfa2 100644 (file)
@@ -144,7 +144,6 @@ static void php_intl_idn_to_46(INTERNAL_FUNCTION_PARAMETERS,
 
        uts46 = uidna_openUTS46(option, &status);
        if (php_intl_idn_check_status(status, "failed to open UIDNA instance") == FAILURE) {
-               zend_string_efree(buffer);
                RETURN_FALSE;
        }