mirror of
https://github.com/jorisvink/kore
synced 2025-03-09 12:39:01 -04:00
Don't leak version on error
This commit is contained in:
parent
76383f2353
commit
41d1456cb8
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user