removed superfluous check before free

This commit is contained in:
Lev Walkin 2016-03-14 02:05:23 -07:00
parent d8b8364c8a
commit 13e57efbd5
2 changed files with 2 additions and 4 deletions

View File

@ -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);

View File

@ -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);
}
}