summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2010-07-18 17:20:25 -0500
committerNoriko Hosoi <nhosoi@redhat.com>2010-08-20 13:03:37 -0700
commite5352dbe170a615f202724c6da711a2a3300e02c (patch)
treea31bb09438fb5407393091fdd2ce1d13ba046b8b
parente4fb6a80d624803f1d2b95efae2c2e2d8dceb9bb (diff)
downloadds-e5352dbe170a615f202724c6da711a2a3300e02c.tar.gz
ds-e5352dbe170a615f202724c6da711a2a3300e02c.tar.xz
ds-e5352dbe170a615f202724c6da711a2a3300e02c.zip
Bug 616500 - fix coverify Defect Type: Resource leaks issues CID 12094 - 12136
https://bugzilla.redhat.com/show_bug.cgi?id=616500 Resolves: bug 616500 Bug description: fix coverify Defect Type: Resource leaks issues CID 12106 description: Fixed resource leaks in internal_plugin_search_referral_callback().
-rw-r--r--ldap/servers/slapd/plugin_internal_op.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/ldap/servers/slapd/plugin_internal_op.c b/ldap/servers/slapd/plugin_internal_op.c
index a88e205f..031fbcc1 100644
--- a/ldap/servers/slapd/plugin_internal_op.c
+++ b/ldap/servers/slapd/plugin_internal_op.c
@@ -567,12 +567,7 @@ internal_plugin_search_referral_callback(char *referral, void *callback_data)
/* add this to the list of referrals we are making */
this_referral = (Referral_Node *)slapi_ch_calloc(1,sizeof(Referral_Node));
-
- if ((this_referral->data = slapi_ch_strdup(referral)) == NULL)
- {
- return(0);
- }
-
+ this_referral->data = slapi_ch_strdup(referral);
this_referral->next = ((plugin_search_internal_data *) callback_data)->referral_list_head;
((plugin_search_internal_data *) callback_data)->referral_list_head = this_referral;