From 5432b7930c9d324a6d8cec36655baa8fdd7e56fd Mon Sep 17 00:00:00 2001 From: Riccardo Magliocchetti Date: Wed, 14 Jan 2015 15:14:25 +0100 Subject: [PATCH] router_redis: fix memory leak Reported by Coverity as CID #1264354 --- 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 7f123244..fdf009d6 100644 --- a/plugins/router_redis/router_redis.c +++ b/plugins/router_redis/router_redis.c @@ -345,6 +345,7 @@ static int uwsgi_router_redis_store(struct uwsgi_route *ur, char *args) { if (!urrc->key || !urrc->addr) { uwsgi_log("invalid redisstore route syntax: you need to specify an address and a key\n"); + free(urrc); return -1; }