Commit 09c87307 authored by Lev Walkin's avatar Lev Walkin Committed by GitHub

Merge branch 'master' into fix_recent_memory_leak_and_access_violation

parents 59b1bc8e 5230c64b
...@@ -199,7 +199,7 @@ asn1c_save_compiled_output(arg_t *arg, const char *datadir, ...@@ -199,7 +199,7 @@ asn1c_save_compiled_output(arg_t *arg, const char *datadir,
fclose(mkf); fclose(mkf);
safe_fprintf(stderr, "Generated Makefile.am.sample\n"); safe_fprintf(stderr, "Generated Makefile.am.sample\n");
asn1c__cleanup_pdu_type(); asn1c__cleanup_pdu_type();
return 0; return 0;
} }
...@@ -606,10 +606,13 @@ asn1c__add_pdu_type(const char *ctypename) { ...@@ -606,10 +606,13 @@ asn1c__add_pdu_type(const char *ctypename) {
static void static void
asn1c__cleanup_pdu_type() { asn1c__cleanup_pdu_type() {
int i; int i;
for (i = 0; i < pduTypes; i++) for(i = 0; i < pduTypes; i++) {
free(pduType[i].typename); free(pduType[i].typename);
free(pduType); }
free(pduType);
pduType = NULL;
pduTypes = 0;
} }
static int static int
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment