summaryrefslogtreecommitdiffstats
path: root/sys/nfs
diff options
context:
space:
mode:
Diffstat (limited to 'sys/nfs')
-rw-r--r--sys/nfs/nfs_vnops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c
index d37615a..5b84741 100644
--- a/sys/nfs/nfs_vnops.c
+++ b/sys/nfs/nfs_vnops.c
@@ -2802,9 +2802,9 @@ again:
* If we can't get memory (for whatever reason), we will end up
* committing the buffers one-by-one in the loop below.
*/
+ if (bvec != NULL && bvec != bvec_on_stack)
+ free(bvec, M_TEMP);
if (bveccount > NFS_COMMITBVECSIZ) {
- if (bvec != NULL && bvec != bvec_on_stack)
- free(bvec, M_TEMP);
bvec = (struct buf **)
malloc(bveccount * sizeof(struct buf *),
M_TEMP, M_NOWAIT);
OpenPOWER on IntegriCloud