Commit 13e57efb authored by Lev Walkin's avatar Lev Walkin
Browse files

removed superfluous check before free

parent d8b8364c
......@@ -29,8 +29,7 @@ asn1p_module_free(asn1p_module_t *mod) {
free(mod->ModuleName);
if(mod->module_oid)
asn1p_oid_free(mod->module_oid);
asn1p_oid_free(mod->module_oid);
while((expr = TQ_REMOVE(&(mod->members), next)))
asn1p_expr_free(expr);
......
......@@ -26,8 +26,7 @@ void
asn1p_xports_free(asn1p_xports_t *xp) {
if(xp) {
free(xp->fromModuleName);
if(xp->identifier.oid)
asn1p_oid_free(xp->identifier.oid);
asn1p_oid_free(xp->identifier.oid);
free(xp);
}
}
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