diff options
-rw-r--r-- | libasn1parser/asn1p_module.c | 3 | ||||
-rw-r--r-- | libasn1parser/asn1p_xports.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/libasn1parser/asn1p_module.c b/libasn1parser/asn1p_module.c index 29cf683a..e7afb056 100644 --- a/libasn1parser/asn1p_module.c +++ b/libasn1parser/asn1p_module.c @@ -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); diff --git a/libasn1parser/asn1p_xports.c b/libasn1parser/asn1p_xports.c index 594a60e4..35104df2 100644 --- a/libasn1parser/asn1p_xports.c +++ b/libasn1parser/asn1p_xports.c @@ -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); } } |