aboutsummaryrefslogtreecommitdiffstats
path: root/libasn1fix/asn1fix_retrieve.c
diff options
context:
space:
mode:
authorBi-Ruei, Chiu <biruei.chiu@gmail.com>2017-11-13 00:34:27 +0800
committerLev Walkin <vlm@lionet.info>2017-11-13 22:23:29 -0800
commit0299037ed8dd7423c937a2d4e4928d81e85ffe16 (patch)
tree9c0f89d060e4f3b554214f3154173981ccdf8e6c /libasn1fix/asn1fix_retrieve.c
parent8ae074ce79cf0b8d628276e2d082813ae1c57f46 (diff)
Fix memory leakeage
Diffstat (limited to 'libasn1fix/asn1fix_retrieve.c')
-rw-r--r--libasn1fix/asn1fix_retrieve.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libasn1fix/asn1fix_retrieve.c b/libasn1fix/asn1fix_retrieve.c
index 40acbe5a..75ba3f01 100644
--- a/libasn1fix/asn1fix_retrieve.c
+++ b/libasn1fix/asn1fix_retrieve.c
@@ -286,6 +286,7 @@ asn1f_lookup_symbol_impl(arg_t *arg, asn1p_expr_t *rhs_pspecs, const asn1p_ref_t
return NULL;
}
+ DISPOSE_OF_MY_NAMESPACE();
my_namespace = asn1_namespace_new_from_module(imports_from, 1);
DEBUG("Lookup (%s) in %s for line %d", asn1f_printable_reference(ref),
asn1_namespace_string(my_namespace), ref->_lineno);
@@ -341,6 +342,7 @@ asn1f_lookup_symbol_impl(arg_t *arg, asn1p_expr_t *rhs_pspecs, const asn1p_ref_t
ref_tc->Identifier, asn1f_printable_reference(ref),
ref->_lineno);
errno = EPERM;
+ DISPOSE_OF_MY_NAMESPACE();
return NULL;
}
if(rhs_pspecs && ref_tc->lhs_params) {
@@ -383,6 +385,7 @@ asn1f_lookup_symbol_impl(arg_t *arg, asn1p_expr_t *rhs_pspecs, const asn1p_ref_t
asn1_namespace_string(arg->ns),
asn1f_printable_reference(ref), ref->_lineno);
errno = ETOOMANYREFS;
+ DISPOSE_OF_MY_NAMESPACE();
return NULL;
}