Ooops.. this free should come at the end of the loop. Thanks
to Juergen Hannken-Illjes for pointing it out.
This commit is contained in:
parent
2b5fd0669b
commit
7dc6ce2f91
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: rf_states.c,v 1.34 2004/03/22 20:28:57 oster Exp $ */
|
||||
/* $NetBSD: rf_states.c,v 1.35 2004/03/23 13:09:18 oster Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1995 Carnegie-Mellon University.
|
||||
* All rights reserved.
|
||||
@ -27,7 +27,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: rf_states.c,v 1.34 2004/03/22 20:28:57 oster Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: rf_states.c,v 1.35 2004/03/23 13:09:18 oster Exp $");
|
||||
|
||||
#include <sys/errno.h>
|
||||
|
||||
@ -620,8 +620,8 @@ rf_State_ProcessDAG(RF_RaidAccessDesc_t *desc)
|
||||
for (i = 0; i < desc->numStripes; i++) {
|
||||
rf_FreeDAG(dagList->dags);
|
||||
temp = dagList;
|
||||
rf_FreeDAGList(temp);
|
||||
dagList = dagList->next;
|
||||
rf_FreeDAGList(temp);
|
||||
}
|
||||
rf_MarkFailuresInASMList(raidPtr, asmh);
|
||||
/* back up to rf_State_CreateDAG */
|
||||
|
Loading…
Reference in New Issue
Block a user