From 25cda200be2d5dee698d7ae993f451dff5ade8ce Mon Sep 17 00:00:00 2001 From: lstefani Date: Thu, 13 Apr 2017 10:00:15 -0400 Subject: [PATCH] Update nghttp2_session.c Add missing free call on error in inflight_settings_new(). --- lib/nghttp2_session.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/nghttp2_session.c b/lib/nghttp2_session.c index 7edd4ac9..1c060f1b 100644 --- a/lib/nghttp2_session.c +++ b/lib/nghttp2_session.c @@ -682,6 +682,7 @@ static int inflight_settings_new(nghttp2_inflight_settings **settings_ptr, if (niv > 0) { (*settings_ptr)->iv = nghttp2_frame_iv_copy(iv, niv, mem); if (!(*settings_ptr)->iv) { + nghttp2_mem_free(mem, *settings_ptr); return NGHTTP2_ERR_NOMEM; } } else {