Skip to content

Commit

Permalink
Fix memory leak on redis cache misses
Browse files Browse the repository at this point in the history
Closes #1441
Credits go to @mrmeyers99

(cherry picked from commit cf88b4b)
  • Loading branch information
bogdan-iancu committed Aug 14, 2018
1 parent 0e978c9 commit 56f0ab5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/cachedb_redis/cachedb_redis_dbase.c
Expand Up @@ -309,6 +309,7 @@ int redis_get(cachedb_con *connection,str *attr,str *val)
LM_DBG("no such key - %.*s\n",attr->len,attr->s);
val->s = NULL;
val->len = 0;
freeReplyObject(reply);
return -2;
}

Expand Down

0 comments on commit 56f0ab5

Please sign in to comment.