diff options
author | Valentin Bartenev <vbart@nginx.com> | 2018-04-08 14:08:06 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2018-04-08 14:08:06 +0300 |
commit | 96927e7d0c331156de131eca031414bdf52da1b5 (patch) | |
tree | 81abc87fb9f27842193771c69071d1cc53de214e /src | |
parent | 8934afee242c1f9e33a46f4347c0a0c773590db0 (diff) | |
download | unit-96927e7d0c331156de131eca031414bdf52da1b5.tar.gz unit-96927e7d0c331156de131eca031414bdf52da1b5.tar.bz2 |
Controller: fixed a memory leak when PUT operation failed.
Thanks to 洪志道 (Hong Zhi Dao).
Diffstat (limited to '')
-rw-r--r-- | src/nxt_controller.c | 2 |
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; } |