summaryrefslogtreecommitdiff
path: root/isofs/rr.c
diff options
context:
space:
mode:
Diffstat (limited to 'isofs/rr.c')
-rw-r--r--isofs/rr.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/isofs/rr.c b/isofs/rr.c
index 58e8fa98..05c4e051 100644
--- a/isofs/rr.c
+++ b/isofs/rr.c
@@ -295,7 +295,11 @@ rrip_work (struct dirrect *dr, struct rrip_lookup *rr,
/* Is this a failed match? */
if (match_name && (match_name_len != namelen
|| memcmp (match_name, name, match_name_len)))
- return 0;
+ {
+ if (nmbuf)
+ free (nmbuf);
+ return 0;
+ }
/* Store the name */
rr->valid |= VALID_NM;