Module Name:    src
Committed By:   martin
Date:           Thu Oct 30 12:38:15 UTC 2014

Modified Files:
        src/lib/libperfuse [netbsd-7]: ops.c

Log Message:
Pull up following revision(s) (requested by manu in ticket #170):
        lib/libperfuse/ops.c: revision 1.77
Fix invalid free in deletextattr FUSE handler
Do not free FUSE message on error as it was not allocated.


To generate a diff of this commit:
cvs rdiff -u -r1.66.2.8 -r1.66.2.9 src/lib/libperfuse/ops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libperfuse/ops.c
diff -u src/lib/libperfuse/ops.c:1.66.2.8 src/lib/libperfuse/ops.c:1.66.2.9
--- src/lib/libperfuse/ops.c:1.66.2.8	Mon Oct 13 19:00:16 2014
+++ src/lib/libperfuse/ops.c	Thu Oct 30 12:38:15 2014
@@ -1,4 +1,4 @@
-/*  $NetBSD: ops.c,v 1.66.2.8 2014/10/13 19:00:16 martin Exp $ */
+/*  $NetBSD: ops.c,v 1.66.2.9 2014/10/30 12:38:15 martin Exp $ */
 
 /*-
  *  Copyright (c) 2010-2011 Emmanuel Dreyfus. All rights reserved.
@@ -3633,9 +3633,11 @@ perfuse_node_deleteextattr(struct puffs_
 	(void)strlcpy(np, attrname, attrnamelen);
 	
 	error = xchg_msg(pu, opc, pm, NO_PAYLOAD_REPLY_LEN, wait_reply);
+	if (error != 0)
+		goto out;
 	
 	ps->ps_destroy_msg(pm);
-
+out:
 	node_rele(opc);
 	return error;
 }

Reply via email to