ensure options are applied before the headers are set
[m6w6/ext-http] / php_http_misc.c
index 51072cf53da8e59e6578849c28a31bf0d28edb91..c6e22700fdafeda8ada5baf65ec2eb74fa181095 100644 (file)
@@ -80,8 +80,8 @@ int php_http_match(const char *haystack_str, const char *needle_str, int flags)
                        }
                }
 
-               STR_FREE(haystack);
-               STR_FREE(needle);
+               PTR_FREE(haystack);
+               PTR_FREE(needle);
        }
 
        return result;