]> git.sur5r.net Git - openldap/commitdiff
Plug addtional realBase memory leaks.
authorKurt Zeilenga <kurt@openldap.org>
Sun, 27 Dec 1998 23:23:09 +0000 (23:23 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sun, 27 Dec 1998 23:23:09 +0000 (23:23 +0000)
servers/slapd/back-ldbm/search.c

index e88af1735f25aa9f58fadc06b8b98adc82701eff..0b488c00041a33e748dc0cb450cde7a5faf17de8 100644 (file)
@@ -237,6 +237,10 @@ ldbm_back_search(
                                                        nrefs > 0 ? rbuf : NULL, nentries );
                                                idl_free( candidates );
                                                free( rbuf );
+
+                                               if( realBase != NULL) {
+                                                       free( realBase );
+                                               }
                                                return( 0 );
                                        }
 
@@ -266,6 +270,10 @@ ldbm_back_search(
                                                cache_return_entry_r( &li->li_cache, e );
                                                idl_free( candidates );
                                                free( rbuf );
+
+                                               if( realBase != NULL) {
+                                                       free( realBase );
+                                               }
                                                return( 0 );
                                        }
                                }