Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
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
asn1c
Commits
aead8c5f
Commit
aead8c5f
authored
Oct 10, 2017
by
Vasil Velichkov
Committed by
Lev Walkin
Oct 10, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a memory leak in SEQUENCE_free
Fixes check-src/check-135.-gen-OER.c and check-src/check64-136.-gen-OER.c
parent
84dd0fef
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
skeletons/constr_SEQUENCE.c
skeletons/constr_SEQUENCE.c
+7
-0
No files found.
skeletons/constr_SEQUENCE.c
View file @
aead8c5f
...
...
@@ -994,6 +994,9 @@ void
SEQUENCE_free
(
const
asn_TYPE_descriptor_t
*
td
,
void
*
sptr
,
enum
asn_struct_free_method
method
)
{
size_t
edx
;
const
asn_SEQUENCE_specifics_t
*
specs
=
(
const
asn_SEQUENCE_specifics_t
*
)
td
->
specifics
;
asn_struct_ctx_t
*
ctx
;
/* Decoder context */
if
(
!
td
||
!
sptr
)
return
;
...
...
@@ -1013,6 +1016,10 @@ SEQUENCE_free(const asn_TYPE_descriptor_t *td, void *sptr,
}
}
/* Clean parsing context */
ctx
=
(
asn_struct_ctx_t
*
)((
char
*
)
sptr
+
specs
->
ctx_offset
);
FREEMEM
(
ctx
->
ptr
);
switch
(
method
)
{
case
ASFM_FREE_EVERYTHING
:
FREEMEM
(
sptr
);
...
...
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