From 3fe8b2800a449e3722fed6618e315511f50b2dd6 Mon Sep 17 00:00:00 2001 From: Olga Kornievskaia Date: Thu, 2 Dec 2010 13:01:15 -0500 Subject: [PATCH] fixing pattern_init shouldn't have been freeing pattern caz it's on the stack. instead deference the reference we get on the layout. --- daemon/pnfs_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/pnfs_io.c b/daemon/pnfs_io.c index 819d77a..70b49a3 100644 --- a/daemon/pnfs_io.c +++ b/daemon/pnfs_io.c @@ -71,7 +71,7 @@ static enum pnfs_status pattern_init( pattern->threads = calloc(pattern->count, sizeof(pnfs_io_thread)); if (pattern->threads == NULL) { status = PNFSERR_RESOURCES; - free(pattern); + pnfs_layout_io_finished(&pattern->layout->layout); goto out; }