freebsd-nq/sys/nfs
Ian Dowse 02b31a0ee9 Fix a client-side memory leak in nfs_flush(). The code allocates
a temporary array to store struct buf pointers if the list doesn't
fit in a local array. Usually it frees the array when finished,
but if it jumps to the 'again' label and the new list does fit in
the local array then it can forget to free a previously malloc'd
M_TEMP memory.

Move the free() up a line so that it frees any previously allocated
memory whether or not it needs to malloc a new array.

Reviewed by:	dillon
2001-08-01 10:25:13 +00:00
..
bootp_subr.c Enable use of DHCP extensions. 2001-02-02 02:35:40 +00:00
krpc_subr.c * Rename M_WAIT mbuf subsystem flag to M_TRYWAIT. 2000-12-21 21:44:31 +00:00
krpc.h
nfs_bio.c - Sort includes. 2001-07-04 20:14:59 +00:00
nfs_common.c With Alfred's permission, remove vm_mtx in favor of a fine-grained approach 2001-07-04 16:20:28 +00:00
nfs_common.h * Rename M_WAIT mbuf subsystem flag to M_TRYWAIT. 2000-12-21 21:44:31 +00:00
nfs_lock.c Unlock the process returned from pfind() if it does not return NULL. 2001-06-01 01:30:51 +00:00
nfs_lock.h Implement client side NFS locks. 2001-04-17 20:45:23 +00:00
nfs_node.c Undo part of the tangle of having sys/lock.h and sys/mutex.h included in 2001-05-01 08:13:21 +00:00
nfs_nqlease.c Undo part of the tangle of having sys/lock.h and sys/mutex.h included in 2001-05-01 08:13:21 +00:00
nfs_serv.c Revert consequences of changes to mount.h, part 2. 2001-04-29 02:45:39 +00:00
nfs_socket.c Undo part of the tangle of having sys/lock.h and sys/mutex.h included in 2001-05-01 08:13:21 +00:00
nfs_srvcache.c Revert consequences of changes to mount.h, part 2. 2001-04-29 02:45:39 +00:00
nfs_subs.c With Alfred's permission, remove vm_mtx in favor of a fine-grained approach 2001-07-04 16:20:28 +00:00
nfs_syscalls.c Revert consequences of changes to mount.h, part 2. 2001-04-29 02:45:39 +00:00
nfs_vfsops.c Check the filehandle size when mounting. 2001-07-30 20:01:59 +00:00
nfs_vnops.c Fix a client-side memory leak in nfs_flush(). The code allocates 2001-08-01 10:25:13 +00:00
nfs.h Implement client side NFS locks. 2001-04-17 20:45:23 +00:00
nfsdiskless.h
nfsm_subs.h * Rename M_WAIT mbuf subsystem flag to M_TRYWAIT. 2000-12-21 21:44:31 +00:00
nfsmount.h In preparation for deprecating CIRCLEQ macros in favor of TAILQ 2000-11-14 08:00:39 +00:00
nfsnode.h In preparation for deprecating CIRCLEQ macros in favor of TAILQ 2000-11-14 08:00:39 +00:00
nfsproto.h
nfsrtt.h
nfsrvcache.h Back out the previous change to the queue(3) interface. 2000-05-26 02:09:24 +00:00
nfsv2.h
nlminfo.h Implement client side NFS locks. 2001-04-17 20:45:23 +00:00
nqnfs.h In preparation for deprecating CIRCLEQ macros in favor of TAILQ 2000-11-14 08:00:39 +00:00
rpcv2.h
xdr_subs.h