diff options
| author | Endi S. Dewata <edewata@redhat.com> | 2010-07-30 15:02:32 -0500 |
|---|---|---|
| committer | Noriko Hosoi <nhosoi@redhat.com> | 2010-08-19 14:26:43 -0700 |
| commit | a98a49328cf470d3b13cebebfc1229a843549121 (patch) | |
| tree | 3fecc3826e9bc2cb19ede580f90d7f073530efdc /ldap/servers/plugins/replication | |
| parent | 3cb4de948bc0da7c8175134393096ca7d35bc2de (diff) | |
| download | ds-a98a49328cf470d3b13cebebfc1229a843549121.tar.gz ds-a98a49328cf470d3b13cebebfc1229a843549121.tar.xz ds-a98a49328cf470d3b13cebebfc1229a843549121.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 12051.
description: The legacy_preop_compare() has been modified to release referral before it returns.
Diffstat (limited to 'ldap/servers/plugins/replication')
| -rw-r--r-- | ldap/servers/plugins/replication/repl_compare.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ldap/servers/plugins/replication/repl_compare.c b/ldap/servers/plugins/replication/repl_compare.c index 0771511c..acb0d692 100644 --- a/ldap/servers/plugins/replication/repl_compare.c +++ b/ldap/servers/plugins/replication/repl_compare.c @@ -67,5 +67,6 @@ legacy_preop_compare( Slapi_PBlock *pb ) slapi_send_ldap_result(pb, LDAP_REFERRAL, NULL, NULL, 0, referral); return_code = 1; /* return 1 to prevent further search processing */ } + slapi_ch_free((void**)&referral); return return_code; } |
