1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-21 11:13:30 +00:00
freebsd/sys/nfsclient
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_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_nfsiod.c Revert consequences of changes to mount.h, part 2. 2001-04-29 02:45:39 +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_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_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_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
nfsargs.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
nfsnode.h
nfsstats.h Implement client side NFS locks. 2001-04-17 20:45:23 +00:00
nlminfo.h Implement client side NFS locks. 2001-04-17 20:45:23 +00:00