From: Hallvard Furuseth Date: Sun, 27 Dec 1998 03:11:13 +0000 (+0000) Subject: Plug memory leak X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~861 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0aafb7267aec09a5fe3fa3f36641b6b6d059d362;p=openldap Plug memory leak --- diff --git a/servers/slapd/tools/ldif2id2children.c b/servers/slapd/tools/ldif2id2children.c index 08d62dfe53..3a0b285a49 100644 --- a/servers/slapd/tools/ldif2id2children.c +++ b/servers/slapd/tools/ldif2id2children.c @@ -214,6 +214,8 @@ main( int argc, char **argv ) line[0] = '\0'; } } + if ( buf ) + free( buf ); /* * next, make the id2children index