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:
parent
dd3701932f
commit
3fe8b2800a
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue