summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2010-06-30 10:46:52 -0600
committerRich Megginson <rmeggins@redhat.com>2010-07-01 15:49:59 -0600
commitfabd35294d0159ca840b019b6108df2eb759fea3 (patch)
tree89e4682ad2bc81d7514f8c89ecc4d18d81bb5444
parent99fa0c1363c32a2e3352c07be4b5aae751018d23 (diff)
Bug 609590 - fix coverity Defect Type: Memory - corruptions issues
https://bugzilla.redhat.com/show_bug.cgi?id=609590 Resolves: bug 609590 Bug Description: fix coverity Defect Type: Memory - corruptions issues Reviewed by: nhosoi (Thanks!) Branch: HEAD Fix Description: If there was an error, set filter to NULL so we won't attempt to free static memory. Platforms tested: RHEL5 x86_64 Flag Day: no Doc impact: no
-rw-r--r--ldap/servers/plugins/usn/usn_cleanup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ldap/servers/plugins/usn/usn_cleanup.c b/ldap/servers/plugins/usn/usn_cleanup.c
index 1c92a5a1..8234bd45 100644
--- a/ldap/servers/plugins/usn/usn_cleanup.c
+++ b/ldap/servers/plugins/usn/usn_cleanup.c
@@ -83,6 +83,7 @@ usn_cleanup_thread(void *arg)
slapi_log_error(SLAPI_LOG_FATAL, USN_PLUGIN_SUBSYSTEM,
"USN tombstone cleanup: USN plugin is not initialized\n");
rv = -1;
+ filter = NULL; /* so we don't try to free it */
goto bail;
}