Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-ece
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
libvmod-ece
Commits
6b11c017
Commit
6b11c017
authored
Sep 13, 2019
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix a memory leak.
parent
bfc395da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
keys.c
src/keys.c
+7
-0
No files found.
src/keys.c
View file @
6b11c017
...
...
@@ -260,6 +260,8 @@ KEY_Fini(void)
CHECK_OBJ
(
key
,
KEY_MAGIC
);
AN
(
key
->
key
);
KEY_Wipe
(
key
->
key
);
AN
(
key
->
id
);
free
(
key
->
id
);
nxt_k
=
VRBT_NEXT
(
key_tree
,
tree_h
,
key
);
VRBT_REMOVE
(
key_tree
,
tree_h
,
key
);
FREE_OBJ
(
key
);
...
...
@@ -324,6 +326,10 @@ key_find(struct key_tree *tree_h, uint8_t *id, uint8_t idlen)
keycmp
.
idlen
=
idlen
;
key
=
VRBT_FIND
(
key_tree
,
tree_h
,
&
keycmp
);
CHECK_OBJ_ORNULL
(
key
,
KEY_MAGIC
);
if
(
key
!=
NULL
)
{
AN
(
key
->
key
);
AN
(
key
->
id
);
}
return
(
key
);
}
...
...
@@ -390,6 +396,7 @@ KEY_Set(VRT_CTX, uint8_t *id, uint8_t idlen, const uint8_t *key)
VRBT_INSERT
(
key_tree
,
tree_h
,
k
);
}
CHECK_OBJ_NOTNULL
(
k
,
KEY_MAGIC
);
AN
(
k
->
key
);
memcpy
(
k
->
key
,
key
,
AES128_KEYLEN
);
KEY_Unlock
(
idlen
);
...
...
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