Controller: fixed a memory leak when PUT operation failed.

Thanks to 洪志道 (Hong Zhi Dao).
This commit is contained in:
Valentin Bartenev
2018-04-08 14:08:06 +03:00
parent 8934afee24
commit 96927e7d0c

View File

@@ -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;
}