Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
60b17ab5
Commit
60b17ab5
authored
Mar 13, 2019
by
Martin Blix Grydeland
Committed by
Reza Naghibi
May 20, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a small memory leak
Fix a small memory leak when failing to spawn a new thread.
parent
b3344f26
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
cache_wrk.c
bin/varnishd/cache/cache_wrk.c
+1
-0
No files found.
bin/varnishd/cache/cache_wrk.c
View file @
60b17ab5
...
...
@@ -462,6 +462,7 @@ pool_breed(struct pool *qp)
pi
->
qp
=
qp
;
if
(
pthread_create
(
&
tp
,
&
tp_attr
,
pool_thread
,
pi
))
{
FREE_OBJ
(
pi
);
VSL
(
SLT_Debug
,
0
,
"Create worker thread failed %d %s"
,
errno
,
strerror
(
errno
));
Lck_Lock
(
&
pool_mtx
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment