From b6bbc11f6896c735053b68b516b2bc3e8c6fd23c Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Sun, 29 Apr 2001 22:32:44 +0000 Subject: 2001-04-30 Marcus Brinkmann * rr.c (rrip_work): In the MATCH_NAME case, free NMBUF if it is non-zero before returning. --- isofs/ChangeLog | 5 +++++ isofs/rr.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/isofs/ChangeLog b/isofs/ChangeLog index 81043e4c..e6cfc169 100644 --- a/isofs/ChangeLog +++ b/isofs/ChangeLog @@ -1,3 +1,8 @@ +2001-04-30 Marcus Brinkmann + + * rr.c (rrip_work): In the MATCH_NAME case, free NMBUF if it is non-zero + before returning. + 2001-04-29 Marcus Brinkmann * lookup.c (diskfs_get_directs): If an RE entry is encountered, 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; -- cgit v1.2.3