From: Howard Chu Date: Mon, 9 Jan 2006 18:00:11 +0000 (+0000) Subject: Plug memleak when query isn't added to cache X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~375 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a393b686563ef66bec09eb762ca2c092c647518c;p=openldap Plug memleak when query isn't added to cache --- 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 */