From fabd35294d0159ca840b019b6108df2eb759fea3 Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Wed, 30 Jun 2010 10:46:52 -0600 Subject: 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 --- ldap/servers/plugins/usn/usn_cleanup.c | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit