diff options
Diffstat (limited to 'src/responder/common/negcache.c')
-rw-r--r-- | src/responder/common/negcache.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/responder/common/negcache.c b/src/responder/common/negcache.c index fab549c1..47f4c323 100644 --- a/src/responder/common/negcache.c +++ b/src/responder/common/negcache.c @@ -82,6 +82,8 @@ static int sss_ncache_check_str(struct sss_nc_ctx *ctx, char *str, int ttl) DEBUG(8, ("Checking negative cache for [%s]\n", str)); + data.dptr = NULL; + ret = string_to_tdb_data(str, &key); if (ret != EOK) goto done; @@ -127,6 +129,7 @@ done: ret = ENOENT; } + free(data.dptr); return ret; } |