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,
fclose(mkf);
safe_fprintf(stderr, "Generated Makefile.am.sample\n");
asn1c__cleanup_pdu_type();
asn1c__cleanup_pdu_type();
return 0;
}
......@@ -606,10 +606,13 @@ asn1c__add_pdu_type(const char *ctypename) {
static void
asn1c__cleanup_pdu_type() {
int i;
for (i = 0; i < pduTypes; i++)
free(pduType[i].typename);
free(pduType);
int i;
for(i = 0; i < pduTypes; i++) {
free(pduType[i].typename);
}
free(pduType);
pduType = NULL;
pduTypes = 0;
}
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