amoralej / rpms / 389-ds-base

Forked from rpms/389-ds-base 5 years ago
Clone

Blame SOURCES/0013-Coverity-fix-11952.patch

ba46c7
From 60b07146e7629bc9fc6554893fd9611cacb2b496 Mon Sep 17 00:00:00 2001
ba46c7
From: Mark Reynolds <mreynolds@redhat.com>
ba46c7
Date: Mon, 16 Sep 2013 09:48:05 -0400
ba46c7
Subject: [PATCH 13/28] Coverity fix - 11952
ba46c7
ba46c7
Fix resource leak in linked-attributes fixup task
ba46c7
(cherry picked from commit e92d2165463afe7a7606af6d13532642fa3462c1)
ba46c7
(cherry picked from commit 682920001822c14b45c08e2c668615762ab02c3d)
ba46c7
---
ba46c7
 ldap/servers/plugins/linkedattrs/fixup_task.c |    1 +
ba46c7
 1 files changed, 1 insertions(+), 0 deletions(-)
ba46c7
ba46c7
diff --git a/ldap/servers/plugins/linkedattrs/fixup_task.c b/ldap/servers/plugins/linkedattrs/fixup_task.c
ba46c7
index 537544d..ff6dd82 100644
ba46c7
--- a/ldap/servers/plugins/linkedattrs/fixup_task.c
ba46c7
+++ b/ldap/servers/plugins/linkedattrs/fixup_task.c
ba46c7
@@ -236,6 +236,7 @@ linked_attrs_fixup_links(struct configEntry *config)
ba46c7
         if (plugin_is_betxn) {
ba46c7
             Slapi_DN *fixup_dn = slapi_sdn_new_dn_byref(config->scope);
ba46c7
             Slapi_Backend *be = slapi_be_select(fixup_dn);
ba46c7
+            slapi_sdn_free(&fixup_dn);
ba46c7
 
ba46c7
             if (be) {
ba46c7
                 fixup_pb = slapi_pblock_new();
ba46c7
-- 
ba46c7
1.7.1
ba46c7