router_redis: fix memory leak

Reported by Coverity as CID #1264356
This commit is contained in:
Riccardo Magliocchetti
2015-01-14 14:58:39 +01:00
parent 3f4ef483a2
commit 9f060d05f6
+1
View File
@@ -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;
}