diff options
author | Marcus Brinkmann <marcus@gnu.org> | 2001-04-29 22:32:44 +0000 |
---|---|---|
committer | Marcus Brinkmann <marcus@gnu.org> | 2001-04-29 22:32:44 +0000 |
commit | b6bbc11f6896c735053b68b516b2bc3e8c6fd23c (patch) | |
tree | 0f1ebab4d4f48e442682380f8c7ce681f16ff8ec /isofs/rr.c | |
parent | f26028486ddc61c0508efab260afb8503b377eb3 (diff) |
2001-04-30 Marcus Brinkmann <marcus@gnu.org>
* rr.c (rrip_work): In the MATCH_NAME case, free NMBUF if it is non-zero
before returning.
Diffstat (limited to 'isofs/rr.c')
-rw-r--r-- | isofs/rr.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; |