Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
f9c566ec
Commit
f9c566ec
authored
Jul 28, 2013
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix memory leak in unittest
parent
8033152e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
tests/nghttp2_hd_test.c
tests/nghttp2_hd_test.c
+6
-0
No files found.
tests/nghttp2_hd_test.c
View file @
f9c566ec
...
@@ -345,6 +345,9 @@ static void check_deflate_inflate(nghttp2_hd_context *deflater,
...
@@ -345,6 +345,9 @@ static void check_deflate_inflate(nghttp2_hd_context *deflater,
CU_ASSERT
(
resnvlen
==
(
ssize_t
)
nvlen
);
CU_ASSERT
(
resnvlen
==
(
ssize_t
)
nvlen
);
assert_nv_equal
(
nva
,
resnva
,
nvlen
);
assert_nv_equal
(
nva
,
resnva
,
nvlen
);
nghttp2_hd_end_headers
(
inflater
);
nghttp2_hd_end_headers
(
inflater
);
free
(
resnva
);
free
(
buf
);
}
}
void
test_nghttp2_hd_deflate_inflate
(
void
)
void
test_nghttp2_hd_deflate_inflate
(
void
)
...
@@ -498,4 +501,7 @@ void test_nghttp2_hd_deflate_inflate(void)
...
@@ -498,4 +501,7 @@ void test_nghttp2_hd_deflate_inflate(void)
check_deflate_inflate
(
&
deflater
,
&
inflater
,
nv8
,
ARRLEN
(
nv8
));
check_deflate_inflate
(
&
deflater
,
&
inflater
,
nv8
,
ARRLEN
(
nv8
));
check_deflate_inflate
(
&
deflater
,
&
inflater
,
nv9
,
ARRLEN
(
nv9
));
check_deflate_inflate
(
&
deflater
,
&
inflater
,
nv9
,
ARRLEN
(
nv9
));
check_deflate_inflate
(
&
deflater
,
&
inflater
,
nv10
,
ARRLEN
(
nv10
));
check_deflate_inflate
(
&
deflater
,
&
inflater
,
nv10
,
ARRLEN
(
nv10
));
nghttp2_hd_inflate_free
(
&
inflater
);
nghttp2_hd_deflate_free
(
&
deflater
);
}
}
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