From 1355e605d583f3ebde9dc825d67dca1396cb658d Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 4 Sep 2008 12:19:05 +0000 Subject: [PATCH] Don't leak syntax oid macro in case of duplicate attribute (ITS#5683) --- servers/slapd/at.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/servers/slapd/at.c b/servers/slapd/at.c index 54d197c495..9339c51e6e 100644 --- a/servers/slapd/at.c +++ b/servers/slapd/at.c @@ -939,6 +939,11 @@ error_return:; at->at_oid = oidm; } + if ( soidm ) { + SLAP_FREE( at->at_syntax_oid ); + at->at_syntax_oid = soidm; + } + } else if ( rsat ) { *rsat = sat; } -- 2.39.5