Source-Changes-HG archive

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

[src/trunk]: src/lib/libperfuse Fix memory leak on setattr



details:   https://anonhg.NetBSD.org/src/rev/54a436646169
branches:  trunk
changeset: 779712:54a436646169
user:      manu <manu%NetBSD.org@localhost>
date:      Wed Jun 13 01:45:56 2012 +0000

description:
Fix memory leak on setattr

diffstat:

 lib/libperfuse/ops.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 49c5cd049ad5 -r 54a436646169 lib/libperfuse/ops.c
--- a/lib/libperfuse/ops.c      Tue Jun 12 23:56:19 2012 +0000
+++ b/lib/libperfuse/ops.c      Wed Jun 13 01:45:56 2012 +0000
@@ -1,4 +1,4 @@
-/*  $NetBSD: ops.c,v 1.55 2012/05/28 02:13:32 manu Exp $ */
+/*  $NetBSD: ops.c,v 1.56 2012/06/13 01:45:56 manu Exp $ */
 
 /*-
  *  Copyright (c) 2010-2011 Emmanuel Dreyfus. All rights reserved.
@@ -1868,6 +1868,7 @@
         */
        if (!(fsi->valid & (FUSE_FATTR_SIZE|FUSE_FATTR_ATIME|FUSE_FATTR_MTIME|
                            FUSE_FATTR_MODE|FUSE_FATTR_UID|FUSE_FATTR_GID))) {
+               ps->ps_destroy_msg(pm);
                error = 0;
                goto out;
        }



Home | Main Index | Thread Index | Old Index