From 0aafb7267aec09a5fe3fa3f36641b6b6d059d362 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Sun, 27 Dec 1998 03:11:13 +0000 Subject: [PATCH] Plug memory leak --- servers/slapd/tools/ldif2id2children.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.5