fixed a leak in cgi plugin

This commit is contained in:
roberto@oneiric64
2012-01-10 14:00:36 +01:00
parent c7e7f756bc
commit 798bc482dc
+1
View File
@@ -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;
}