summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nxt_controller.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nxt_controller.c b/src/nxt_controller.c
index d89c8dbc..d1d8efbf 100644
--- a/src/nxt_controller.c
+++ b/src/nxt_controller.c
@@ -835,6 +835,8 @@ nxt_controller_process_request(nxt_task_t *task, nxt_controller_request_t *req)
&path, value);
if (rc != NXT_OK) {
+ nxt_mp_destroy(mp);
+
if (rc == NXT_DECLINED) {
goto not_found;
}