diff options
author | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 2001-04-06 02:26:13 +0000 |
---|---|---|
committer | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 2001-04-06 02:26:13 +0000 |
commit | ccea5a5a7c92530c31d0d76d0c1b2fd4ccf7e938 (patch) | |
tree | 0f15203e27cb9d5e2f90c4cda8eb69d6e99d2f68 /sys | |
parent | 1af015eac73012edcf95d38ecb394497ea1f34ba (diff) |
Free the right variable on error
Diffstat (limited to 'sys')
-rw-r--r-- | sys/ufs/ext2fs/ext2fs_lookup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ext2fs/ext2fs_lookup.c b/sys/ufs/ext2fs/ext2fs_lookup.c index 7c892ff62bf..19b216fe646 100644 --- a/sys/ufs/ext2fs/ext2fs_lookup.c +++ b/sys/ufs/ext2fs/ext2fs_lookup.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ext2fs_lookup.c,v 1.8 2001/03/25 03:53:35 csapuntz Exp $ */ +/* $OpenBSD: ext2fs_lookup.c,v 1.9 2001/04/06 02:26:12 csapuntz Exp $ */ /* $NetBSD: ext2fs_lookup.c,v 1.1 1997/06/11 09:33:59 bouyer Exp $ */ /* @@ -219,7 +219,7 @@ err_exit: FREE(dirbuf, M_TEMP); if (error && cookies) { - FREE(cookies, M_TEMP); + FREE(*ap->a_cookies, M_TEMP); *ap->a_cookies = 0; *ap->a_ncookies = 0; } |