mirror of https://gerrit.osmocom.org/asn1c
removed superfluous check before free
This commit is contained in:
parent
d8b8364c8a
commit
13e57efbd5
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue