Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnishevent3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
varnishevent3
Commits
279acdb3
Commit
279acdb3
authored
Oct 07, 2013
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
varnishevent: data.c cleanup
parent
8a1ca837
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
4 deletions
+20
-4
data.c
bin/varnishevent/data.c
+20
-4
No files found.
bin/varnishevent/data.c
View file @
279acdb3
...
...
@@ -45,15 +45,29 @@ static pthread_mutex_t freelist_lock;
static
char
*
bufptr
;
static
int
ntags
;
#if 0
static
void
free_hdrs
(
hdr_t
*
hdrs
)
{
if
(
hdrs
!=
NULL
)
{
free
(
hdrs
->
record
);
free
(
hdrs
);
}
}
static
void
data_Cleanup
(
void
)
{
free(dtbl.entry);
free(dtbl.buf);
for
(
int
i
=
0
;
i
<
config
.
max_data
;
i
++
)
{
free
(
logline
[
i
].
tag
);
free_hdrs
(
logline
[
i
].
rx_headers
);
free_hdrs
(
logline
[
i
].
tx_headers
);
free_hdrs
(
logline
[
i
].
vcl_log
);
free_hdrs
(
logline
[
i
].
vcl_call
);
}
free
(
logline
);
free
(
bufptr
);
AZ
(
pthread_mutex_destroy
(
&
freelist_lock
));
}
#endif
void
DATA_Clear_Logline
(
logline_t
*
ll
)
...
...
@@ -153,6 +167,8 @@ DATA_Init(void)
AZ
(
pthread_mutex_init
(
&
freelist_lock
,
&
attr_lock
));
data_open
=
data_done
=
data_occ_hi
=
0
;
global_nfree
=
config
.
max_data
;
atexit
(
data_Cleanup
);
return
(
0
);
}
...
...
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