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
5230c64b
Commit
5230c64b
authored
Sep 26, 2017
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pdu types leak fix
parent
42457fe9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
libasn1compiler/asn1c_save.c
libasn1compiler/asn1c_save.c
+14
-0
No files found.
libasn1compiler/asn1c_save.c
View file @
5230c64b
...
...
@@ -43,6 +43,7 @@ static int generate_preamble(arg_t *, FILE *, int optc, char **argv);
static
int
include_type_to_pdu_collection
(
arg_t
*
arg
);
static
void
pdu_collection_print_unused_types
(
arg_t
*
arg
);
static
const
char
*
generate_pdu_C_definition
(
void
);
static
void
asn1c__cleanup_pdu_type
(
void
);
int
asn1c_save_compiled_output
(
arg_t
*
arg
,
const
char
*
datadir
,
...
...
@@ -198,6 +199,8 @@ asn1c_save_compiled_output(arg_t *arg, const char *datadir,
fclose
(
mkf
);
safe_fprintf
(
stderr
,
"Generated Makefile.am.sample
\n
"
);
asn1c__cleanup_pdu_type
();
return
0
;
}
...
...
@@ -601,6 +604,17 @@ asn1c__add_pdu_type(const char *ctypename) {
pduTypes
++
;
}
static
void
asn1c__cleanup_pdu_type
()
{
int
i
;
for
(
i
=
0
;
i
<
pduTypes
;
i
++
)
{
free
(
pduType
[
i
].
typename
);
}
free
(
pduType
);
pduType
=
NULL
;
pduTypes
=
0
;
}
static
int
asn1c__pdu_type_lookup
(
const
char
*
typename
)
{
int
i
;
...
...
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