]> git.sur5r.net Git - openldap/commitdiff
Plug memleak when query isn't added to cache
authorHoward Chu <hyc@openldap.org>
Mon, 9 Jan 2006 18:00:11 +0000 (18:00 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 9 Jan 2006 18:00:11 +0000 (18:00 +0000)
servers/slapd/overlays/pcache.c

index c8cae4d85ce78bf5b263912096ffd303ff57d922..2900f254b501d6229476be9c62096ad99be070a1 100644 (file)
@@ -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 */