From 55993dc66a7dc756ddab795017bbb9ee51b1f816 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 14 Feb 2002 18:15:56 +0000 Subject: [PATCH] don't free dangling pointers :( --- servers/slapd/back-ldbm/modrdn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/back-ldbm/modrdn.c b/servers/slapd/back-ldbm/modrdn.c index 709f3b6acf..36f8e03536 100644 --- a/servers/slapd/back-ldbm/modrdn.c +++ b/servers/slapd/back-ldbm/modrdn.c @@ -63,8 +63,8 @@ ldbm_back_modrdn( char textbuf[SLAP_TEXT_BUFLEN]; size_t textlen = sizeof textbuf; /* Added to support LDAP v2 correctly (deleteoldrdn thing) */ - LDAPRDN *new_rdn; - LDAPRDN *old_rdn; + LDAPRDN *new_rdn = NULL; + LDAPRDN *old_rdn = NULL; int a_cnt, d_cnt; /* Added to support newSuperior */ Entry *np = NULL; /* newSuperior Entry */ -- 2.39.5