router_redis: fix memory leak

Reported by Coverity as CID #1264354
This commit is contained in:
Riccardo Magliocchetti
2015-01-14 15:14:25 +01:00
parent 61d8ce0a87
commit 5432b7930c
+1
View File
@@ -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;
}