From 9f060d05f6ec8907c0051bbe148ae3f3f97bc57f Mon Sep 17 00:00:00 2001 From: Riccardo Magliocchetti Date: Wed, 14 Jan 2015 14:58:39 +0100 Subject: [PATCH] router_redis: fix memory leak Reported by Coverity as CID #1264356 --- plugins/router_redis/router_redis.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/router_redis/router_redis.c b/plugins/router_redis/router_redis.c index 52890893..7f123244 100644 --- a/plugins/router_redis/router_redis.c +++ b/plugins/router_redis/router_redis.c @@ -310,6 +310,7 @@ static int uwsgi_router_redis(struct uwsgi_route *ur, char *args) { if (!urrc->key || !urrc->addr) { uwsgi_log("invalid route syntax: you need to specify a redis address and key pattern\n"); + free(urrc); return -1; }