summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2010-07-18 18:31:18 -0500
committerNoriko Hosoi <nhosoi@redhat.com>2010-08-20 13:03:11 -0700
commit67559e7c020105f61f36b43165fe555fcc0b7d43 (patch)
tree3ea98cfb1206f8f1a8d28c2a0d910e4d2e6fc93c
parent84a82b32683c3fde43074661b2b99fc2e93e8830 (diff)
downloadds-67559e7c020105f61f36b43165fe555fcc0b7d43.tar.gz
ds-67559e7c020105f61f36b43165fe555fcc0b7d43.tar.xz
ds-67559e7c020105f61f36b43165fe555fcc0b7d43.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 12101, 12102 description: Fixed resource leaks in _csngen_gen_tester_main() and _csngen_remote_tester_main().
-rw-r--r--ldap/servers/slapd/csngen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ldap/servers/slapd/csngen.c b/ldap/servers/slapd/csngen.c
index 7f280df1..756db987 100644
--- a/ldap/servers/slapd/csngen.c
+++ b/ldap/servers/slapd/csngen.c
@@ -827,7 +827,7 @@ static void
_csngen_gen_tester_main (void *data)
{
CSNGen *gen = (CSNGen*)data;
- CSN *csn;
+ CSN *csn = NULL;
char buff [CSN_STRSIZE];
int rc;
@@ -846,6 +846,7 @@ _csngen_gen_tester_main (void *data)
slapi_log_error (SLAPI_LOG_FATAL, NULL, "generate csn %s\n",
csn_as_string(csn, PR_FALSE, buff));
}
+ csn_free(&csn);
/* sleep for 30 seconds */
DS_Sleep (PR_SecondsToInterval(10));
@@ -889,6 +890,7 @@ _csngen_remote_tester_main (void *data)
csngen_dump_state (gen);
}
+ csn_free(&csn);
/* sleep for 30 seconds */
DS_Sleep (PR_SecondsToInterval(60));