From: erickson Date: Mon, 27 Feb 2006 00:44:31 +0000 (+0000) Subject: fixed bug where the ptr** was freed prior to the ptr* X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f2ff0bac8c0689982987cf9a87490b48d2f480e9;p=opensrf%2Fbjwebb.git fixed bug where the ptr** was freed prior to the ptr* git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@645 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/libstack/osrf_list.c b/src/libstack/osrf_list.c index cc591db..2a60317 100644 --- a/src/libstack/osrf_list.c +++ b/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); }