Commit 25cda200 authored by lstefani's avatar lstefani Committed by GitHub

Update nghttp2_session.c

Add missing free call on error in inflight_settings_new().
parent a1bc83a2
...@@ -682,6 +682,7 @@ static int inflight_settings_new(nghttp2_inflight_settings **settings_ptr, ...@@ -682,6 +682,7 @@ static int inflight_settings_new(nghttp2_inflight_settings **settings_ptr,
if (niv > 0) { if (niv > 0) {
(*settings_ptr)->iv = nghttp2_frame_iv_copy(iv, niv, mem); (*settings_ptr)->iv = nghttp2_frame_iv_copy(iv, niv, mem);
if (!(*settings_ptr)->iv) { if (!(*settings_ptr)->iv) {
nghttp2_mem_free(mem, *settings_ptr);
return NGHTTP2_ERR_NOMEM; return NGHTTP2_ERR_NOMEM;
} }
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment