summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2010-07-30 10:50:40 -0500
committerNoriko Hosoi <nhosoi@redhat.com>2010-08-19 14:26:20 -0700
commit43fe9ac3ac239a1f49ee618820fa783fe4f15c44 (patch)
tree0169ef0e1660bf2715f963cd79034480c99bc4e9
parent7330a35d7454d5d29f1569151f4d31d6a11975cf (diff)
downloadds-43fe9ac3ac239a1f49ee618820fa783fe4f15c44.tar.gz
ds-43fe9ac3ac239a1f49ee618820fa783fe4f15c44.tar.xz
ds-43fe9ac3ac239a1f49ee618820fa783fe4f15c44.zip
Bug 619122 - fix coverify Defect Type: Resource leaks issues CID 11975 - 12053
https://bugzilla.redhat.com/show_bug.cgi?id=619122 Resolves: bug 619122 Bug description: fix coverify Defect Type: Resource leaks issues CID 12038. description: The urp_add_resolve_parententry() has been modified to release add_rdn before it returns.
-rw-r--r--ldap/servers/plugins/replication/urp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ldap/servers/plugins/replication/urp.c b/ldap/servers/plugins/replication/urp.c
index d1d55c4d..9410423d 100644
--- a/ldap/servers/plugins/replication/urp.c
+++ b/ldap/servers/plugins/replication/urp.c
@@ -938,6 +938,7 @@ urp_add_resolve_parententry (Slapi_PBlock *pb, char *sessionid, Slapi_Entry *ent
bailout:
if (parentdn)
slapi_sdn_free(&parentdn);
+ slapi_rdn_free(&add_rdn);
return rc;
}