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 233d5d17088c25c8a5699deab9960e25ffd4c1af
parent 4e556dbd8f17d24a94792a8b809949115b0182ab
Author: Joris Vink <joris@coders.se>
Date:   Tue,  7 Feb 2017 22:08:04 +0100

remove unneeded NULL check before calling free.

Diffstat:
src/http.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/http.c b/src/http.c @@ -513,8 +513,7 @@ http_request_free(struct http_request *req) TAILQ_REMOVE(&(req->arguments), q, list); kore_free(q->name); - if (q->s_value != NULL) - kore_free(q->s_value); + kore_free(q->s_value); kore_free(q); }