The list owns them. Instead, get the list to free them when
you're done, by calling osrfListClear().
M src/router/osrf_router.c
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1957
9efc2488-bf62-4759-914b-
345cdb29e865
// Translate the JSON into a list of osrfMessages
router->message_list = osrfMessageDeserialize( msg->body, router->message_list );
- osrfMessage* omsg = NULL;
+ const osrfMessage* omsg = NULL;
// Process each osrfMessage
int i;
default:
break;
}
-
- osrfMessageFree( omsg );
}
}
+ osrfListClear( router->message_list );
return;
}