mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-08-23 06:27:47 +00:00
fixed a leak in cgi plugin
This commit is contained in:
@@ -368,6 +368,7 @@ char *uwsgi_cgi_get_docroot(char *path_info, uint16_t path_info_len, int *need_f
|
||||
if (choosen_udd->status == 0) {
|
||||
char *tmp_udd = uwsgi_malloc(PATH_MAX+1);
|
||||
if (!realpath(path, tmp_udd)) {
|
||||
free(tmp_udd);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user