Fix invalid free in deletextattr FUSE handler
Do not free FUSE message on error as it was not allocated.
This commit is contained in:
parent
168954295f
commit
94c72edb04
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ops.c,v 1.76 2014/10/11 04:19:38 manu Exp $ */
|
||||
/* $NetBSD: ops.c,v 1.77 2014/10/28 16:54:11 manu Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2010-2011 Emmanuel Dreyfus. All rights reserved.
|
||||
@ -3633,9 +3633,11 @@ perfuse_node_deleteextattr(struct puffs_usermount *pu, puffs_cookie_t opc,
|
||||
(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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user