Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/rpc.lockd Fix a memory leak: when unlocking make su...



details:   https://anonhg.NetBSD.org/src/rev/c3a2dcf5b388
branches:  trunk
changeset: 516441:c3a2dcf5b388
user:      oster <oster%NetBSD.org@localhost>
date:      Tue Oct 23 19:54:53 2001 +0000

description:
Fix a memory leak: when unlocking make sure we release the memory associated
with the lock begin removed!

Reviewed by thorpej.

diffstat:

 usr.sbin/rpc.lockd/lockd_lock.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r f18485c99952 -r c3a2dcf5b388 usr.sbin/rpc.lockd/lockd_lock.c
--- a/usr.sbin/rpc.lockd/lockd_lock.c   Tue Oct 23 19:52:49 2001 +0000
+++ b/usr.sbin/rpc.lockd/lockd_lock.c   Tue Oct 23 19:54:53 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lockd_lock.c,v 1.7 2001/06/12 15:17:31 wiz Exp $       */
+/*     $NetBSD: lockd_lock.c,v 1.8 2001/10/23 19:54:53 oster Exp $     */
 
 /*
  * Copyright (c) 2000 Manuel Bouyer.
@@ -638,6 +638,7 @@
                }
                break;
        }
+       lfree(rfl);
        return error;
 }
 



Home | Main Index | Thread Index | Old Index