From 52705f04f2f5066e0b70ae971fa26c4a9655f6b2 Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 27 Feb 2006 00:44:31 +0000 Subject: [PATCH] fixed bug where the ptr** was freed prior to the ptr* git-svn-id: svn://svn.open-ils.org/ILS/trunk@3192 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- OpenSRF/src/libstack/osrf_list.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/OpenSRF/src/libstack/osrf_list.c b/OpenSRF/src/libstack/osrf_list.c index cc591db797..2a6031774f 100644 --- a/OpenSRF/src/libstack/osrf_list.c +++ b/OpenSRF/src/libstack/osrf_list.c @@ -52,13 +52,9 @@ void osrfListFree( osrfList* list ) { int retcode; while (value != NULL) { - JLD(retcode, list->list, index); - - if(list->freeItem) { + if(list->freeItem) list->freeItem( (void*) *value ); - *value = (Word_t) NULL; - } - + JLD(retcode, list->list, index); JLP(value, list->list, index); } -- 2.43.2