summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-06-24 15:15:49 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-06-24 15:15:49 +0200
commitaf2dfd1c514cd2b33494f77e8bd88f9c401085b4 (patch)
tree1967ebb04c9d554d1703819c691f1b4fefeba8bc
parent71c57cfa12a99c9ef8d461b5cf703706825d23fa (diff)
downloadrsyslog-af2dfd1c514cd2b33494f77e8bd88f9c401085b4.tar.gz
rsyslog-af2dfd1c514cd2b33494f77e8bd88f9c401085b4.tar.xz
rsyslog-af2dfd1c514cd2b33494f77e8bd88f9c401085b4.zip
bugfix: invalid mutex release in msg.c
Detected under threading debugger, seems not to have any impact on actual deployments.
-rw-r--r--ChangeLog2
-rw-r--r--runtime/msg.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 4d18623e..7a608b77 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -30,6 +30,8 @@ Version 3.22.1 [v3-stable] (rgerhards), 2009-04-??
- relaxed GnuTLS version requirement to 1.4.0 after confirmation from the
field that this version is sufficient
- bugfix: parser did not properly handle empty structured data
+- bugfix: invalid mutex release in msg.c (detected under thread debugger,
+ seems not to have any impact on actual deployments)
---------------------------------------------------------------------------
Version 3.22.0 [v3-stable] (rgerhards), 2009-04-21
This is the first stable release that includes the full functionality
diff --git a/runtime/msg.c b/runtime/msg.c
index 2b58eb88..375b9861 100644
--- a/runtime/msg.c
+++ b/runtime/msg.c
@@ -355,7 +355,9 @@ CODESTARTobjDestruct(msg)
# endif
funcDeleteMutex(pThis);
} else {
+# ifndef HAVE_ATOMIC_BUILTINS
MsgUnlock(pThis);
+# endif
pThis = NULL; /* tell framework not to destructing the object! */
}
ENDobjDestruct(msg)