fixing pattern_init

shouldn't have been freeing pattern caz it's on the stack.
instead deference the reference we get on the layout.
This commit is contained in:
Olga Kornievskaia 2010-12-02 13:01:15 -05:00 committed by unknown
parent dd3701932f
commit 3fe8b2800a

View file

@ -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;
}