1
0
mirror of https://github.com/php/php-src.git synced 2026-04-20 22:41:20 +02:00

Fix for bug #2199. Redirect was returning http:// which resulted in a crash.

This commit is contained in:
Andrey Hristov
1999-09-27 15:17:28 +00:00
parent 375c85e27f
commit 7665e9ef27

View File

@@ -140,6 +140,14 @@ url *url_parse(char *string)
}
efree(result);
}
else {
STR_FREE(ret->scheme);
STR_FREE(ret->path);
STR_FREE(ret->query);
STR_FREE(ret->fragment);
efree(ret);
return NULL;
}
regfree(&re);
return ret;
}