From 5ac8fbad7fccebb69fe74654d53aab514f11a6bf Mon Sep 17 00:00:00 2001 From: oster Date: Fri, 19 Mar 2004 02:57:34 +0000 Subject: Add a comment. Will hopefully save time next time someone tries to figure out where the allocated memory is freed. --- sys/dev/raidframe/rf_map.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/dev/raidframe') diff --git a/sys/dev/raidframe/rf_map.c b/sys/dev/raidframe/rf_map.c index eb4779bb576..cbaa07c545b 100644 --- a/sys/dev/raidframe/rf_map.c +++ b/sys/dev/raidframe/rf_map.c @@ -1,4 +1,4 @@ -/* $NetBSD: rf_map.c,v 1.34 2004/03/19 02:27:44 oster Exp $ */ +/* $NetBSD: rf_map.c,v 1.35 2004/03/19 02:57:34 oster Exp $ */ /* * Copyright (c) 1995 Carnegie-Mellon University. * All rights reserved. @@ -33,7 +33,7 @@ **************************************************************************/ #include -__KERNEL_RCSID(0, "$NetBSD: rf_map.c,v 1.34 2004/03/19 02:27:44 oster Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rf_map.c,v 1.35 2004/03/19 02:57:34 oster Exp $"); #include @@ -799,6 +799,8 @@ rf_ASMParityAdjust(RF_PhysDiskAddr_t *toAdjust, /* create a second pda and copy the parity map info * into it */ RF_ASSERT(toAdjust->next == NULL); + /* the following will get freed in rf_FreeAccessStripeMap() via + rf_FreePDAList() */ new_pda = toAdjust->next = rf_AllocPhysDiskAddr(); *new_pda = *toAdjust; /* structure assignment */ new_pda->next = NULL; -- cgit