From: Pierangelo Masarati Date: Thu, 4 Sep 2008 12:19:05 +0000 (+0000) Subject: Don't leak syntax oid macro in case of duplicate attribute (ITS#5683) X-Git-Tag: ACLCHECK_0~1383 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1355e605d583f3ebde9dc825d67dca1396cb658d;p=openldap Don't leak syntax oid macro in case of duplicate attribute (ITS#5683) --- 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; }