diff options
author | Alex Colomar <a.colomar@f5.com> | 2022-09-10 18:00:27 +0200 |
---|---|---|
committer | Alejandro Colomar <alx@nginx.com> | 2022-10-14 14:43:04 +0200 |
commit | f2213dbd1b51838ec6b59073d9d071a75def7858 (patch) | |
tree | 660015b7d47ea949b63f28afc120e9c09f040536 /docs | |
parent | f8b892e1fa3d6398a21ce5e183911baa11a14d6a (diff) | |
download | unit-f2213dbd1b51838ec6b59073d9d071a75def7858.tar.gz unit-f2213dbd1b51838ec6b59073d9d071a75def7858.tar.bz2 |
Added missing error checking in the C API.
pthread_mutex_init(3) may fail for several reasons, and failing to
check will cause Undefined Behavior when those errors happen. Add
missing checks, and correctly deinitialize previously created
stuff before exiting from the API.
Signed-off-by: Alejandro Colomar <alx@nginx.com>
Reviewed-by: Andrew Clayton <a.clayton@nginx.com>
Reviewed-by: Zhidao HONG <z.hong@f5.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/changes.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/changes.xml b/docs/changes.xml index 91cf8fe3..5da00d88 100644 --- a/docs/changes.xml +++ b/docs/changes.xml @@ -177,7 +177,7 @@ the Ruby application process could crash on SIGINT. <change type="bugfix"> <para> -mutex leak in the C API. +mutex leaks in the C API. </para> </change> |