Don't try to deallocate an object pointed by NULL pointer. Instead,

deallocate the right one.
This commit is contained in:
enami 2000-11-21 03:47:41 +00:00
parent 4927de268a
commit 6bc7e18094
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: lockd_lock.c,v 1.4 2000/08/12 18:08:44 thorpej Exp $ */
/* $NetBSD: lockd_lock.c,v 1.5 2000/11/21 03:47:41 enami Exp $ */
/*
* Copyright (c) 2000 Manuel Bouyer.
@ -264,7 +264,7 @@ getlock(lckarg, rqstp, flags)
do_mon(lckarg->alock.caller_name);
break;
default:
lfree(fl);
lfree(newfl);
break;
}
sigunlock();