From 54dd7675b07299fb85d13edd747b06da6102c379 Mon Sep 17 00:00:00 2001 From: "hyunghwan.chung" Date: Sat, 31 Dec 2016 15:52:46 +0000 Subject: [PATCH] fixed a bug in stix_importmod() --- stix/lib/stix.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stix/lib/stix.c b/stix/lib/stix.c index 6220890..64558af 100644 --- a/stix/lib/stix.c +++ b/stix/lib/stix.c @@ -525,7 +525,7 @@ int stix_importmod (stix_t* stix, stix_oop_t _class, const stix_ooch_t* name, st if (!mdp) { r = -1; - goto done; + goto done2; } } @@ -547,10 +547,11 @@ int stix_importmod (stix_t* stix, stix_oop_t _class, const stix_ooch_t* name, st done: if (!pair) { - /* clsoe the module if it has been opened in this function. */ + /* close the module if it has been opened in this function. */ stix_closemod (stix, mdp); } +done2: stix_poptmp (stix); return r; }