struct esp_state *esp;
struct esp_data *edata = talloc_get_type(web->task->private, struct esp_data);
char *p;
+ void *save_mpr_ctx = mprMemCtx();
int i;
const char *file_type = NULL;
BOOL esp_enable = False;
if (web->input.url == NULL) {
http_error(web, 400, "You must specify a GET or POST request");
+ mprSetCtx(save_mpr_ctx);
return;
}
status = http_parse_post(esp);
if (!NT_STATUS_IS_OK(status)) {
http_error(web, 400, "Malformed POST data");
+ mprSetCtx(save_mpr_ctx);
return;
}
}
status = http_parse_get(esp);
if (!NT_STATUS_IS_OK(status)) {
http_error(web, 400, "Malformed GET data");
+ mprSetCtx(save_mpr_ctx);
return;
}
}
}
talloc_free(esp);
+ mprSetCtx(save_mpr_ctx);
return;
internal_error:
mprSetCtx(esp);
talloc_free(esp);
http_error(web, 500, "Internal server error");
+ mprSetCtx(save_mpr_ctx);
}