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
a791188e
Commit
a791188e
authored
Oct 09, 2019
by
Alf-André Walla
Committed by
Dridi Boukelmoune
Oct 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
genhufdec: Free top table before exit
parent
5f039a4a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
vhp_gen_hufdec.c
bin/varnishd/hpack/vhp_gen_hufdec.c
+11
-0
No files found.
bin/varnishd/hpack/vhp_gen_hufdec.c
View file @
a791188e
...
...
@@ -92,6 +92,16 @@ tbl_new(unsigned mask)
return
(
tbl
);
}
static
void
tbl_free
(
struct
tbl
*
table
)
{
for
(
unsigned
i
=
0
;
i
<
table
->
n
;
i
++
)
{
if
(
table
->
e
[
i
].
next
!=
NULL
)
tbl_free
(
table
->
e
[
i
].
next
);
}
free
(
table
);
}
static
void
tbl_add
(
struct
tbl
*
tbl
,
uint32_t
code
,
unsigned
codelen
,
uint32_t
bits
,
unsigned
len
,
char
chr
)
...
...
@@ -250,5 +260,6 @@ main(int argc, const char **argv)
tbl_print
(
top
);
printf
(
"};
\n
"
);
tbl_free
(
top
);
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