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
bca23a01
Unverified
Commit
bca23a01
authored
Feb 09, 2021
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
re-apply tools/coccinelle/free_obj.cocci
Missing include for REPLACE() / memset() added manually.
parent
c108e603
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
cache_conn_pool.c
bin/varnishd/cache/cache_conn_pool.c
+1
-1
storage_malloc.c
bin/varnishd/storage/storage_malloc.c
+1
-1
vbh.c
lib/libvarnish/vbh.c
+2
-1
No files found.
bin/varnishd/cache/cache_conn_pool.c
View file @
bca23a01
...
...
@@ -247,7 +247,7 @@ VCP_Rel(struct conn_pool **cpp)
AZ
(
cp
->
n_conn
);
AZ
(
cp
->
n_kill
);
free
(
cp
->
endpoint
);
free
(
cp
);
FREE_OBJ
(
cp
);
}
/*--------------------------------------------------------------------
...
...
bin/varnishd/storage/storage_malloc.c
View file @
bca23a01
...
...
@@ -150,7 +150,7 @@ sma_free(struct storage *s)
sma_sc
->
stats
->
g_space
+=
sma
->
sz
;
Lck_Unlock
(
&
sma_sc
->
sma_mtx
);
free
(
sma
->
s
.
ptr
);
free
(
sma
);
FREE_OBJ
(
sma
);
}
static
VCL_BYTES
v_matchproto_
(
stv_var_used_space
)
...
...
lib/libvarnish/vbh.c
View file @
bca23a01
...
...
@@ -41,6 +41,7 @@
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "miniobj.h"
#include "vdef.h"
...
...
@@ -256,7 +257,7 @@ VBH_destroy(struct vbh **bhp)
for
(
u
=
0
;
u
<
bh
->
length
;
u
+=
ROW_WIDTH
)
free
(
ROW
(
bh
,
u
));
free
(
bh
->
array
);
free
(
bh
);
FREE_OBJ
(
bh
);
}
static
void
...
...
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