aboutsummaryrefslogtreecommitdiffstats
path: root/libasn1parser
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2016-03-14 02:05:23 -0700
committerLev Walkin <vlm@lionet.info>2016-03-14 02:05:23 -0700
commit13e57efbd50c7ed66f0312ba13b7b17360b02f14 (patch)
tree84d56f90a0679522114855199544eb041517aa1b /libasn1parser
parentd8b8364c8acea078ff098d8b6fbaa0a29da9346a (diff)
removed superfluous check before free
Diffstat (limited to 'libasn1parser')
-rw-r--r--libasn1parser/asn1p_module.c3
-rw-r--r--libasn1parser/asn1p_xports.c3
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);
}
}