kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 41d1456cb8738cf02a03740bac8538de2dc06c8c
parent 76383f23537f7586e91625f12875f4427b3debdc
Author: Joris Vink <joris@coders.se>
Date:   Wed,  9 Apr 2014 14:45:51 +0200

Don't leak version on error

Diffstat:
src/spdy.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/spdy.c b/src/spdy.c @@ -463,6 +463,8 @@ spdy_ctrl_frame_syn_stream(struct netbuf *nb) kore_mem_free(host); \ if (method != NULL) \ kore_mem_free(method); \ + if (version != NULL) \ + kore_mem_free(version); \ spdy_session_teardown(c, SPDY_SESSION_ERROR_PROTOCOL); \ return (KORE_RESULT_OK); \ } @@ -477,6 +479,7 @@ spdy_ctrl_frame_syn_stream(struct netbuf *nb) kore_mem_free(path); kore_mem_free(method); kore_mem_free(host); + kore_mem_free(version); kore_mem_free(s->hblock->header_block); kore_mem_free(s->hblock); kore_mem_free(s);