[sheepdog] [PATCH] sheep: free msg in cluster_op_done
Christoph Hellwig
hch at infradead.org
Fri Jun 1 08:37:37 CEST 2012
cluster_op_done needs to free the message passed to ->unblock, just like we
do for the non-blocking notifications to avoid a memory leak.
Signed-off-by: Christoph Hellwig <hch at lst.de>
diff --git a/sheep/group.c b/sheep/group.c
index a3c59b4..a058c33 100644
--- a/sheep/group.c
+++ b/sheep/group.c
@@ -284,6 +284,8 @@ static void cluster_op_done(struct work *work)
panic();
sys->cdrv->unblock(msg, size);
+
+ free(msg);
}
/*
More information about the sheepdog
mailing list