From a393b686563ef66bec09eb762ca2c092c647518c Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 9 Jan 2006 18:00:11 +0000 Subject: [PATCH] Plug memleak when query isn't added to cache --- servers/slapd/overlays/pcache.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/servers/slapd/overlays/pcache.c b/servers/slapd/overlays/pcache.c index c8cae4d85c..2900f254b5 100644 --- a/servers/slapd/overlays/pcache.c +++ b/servers/slapd/overlays/pcache.c @@ -1109,6 +1109,9 @@ pcache_response( } ldap_pvt_thread_mutex_unlock( &slapd_rq.rq_mutex ); } + } else { + free( si->query.attrs ); + filter_free( si->query.filter ); } /* free self */ -- 2.39.5