/** * @brief Frees all the loaded commodities. */ void commodity_free (void) { int i; for (i=0; i<commodity_nstack; i++) commodity_freeOne( &commodity_stack[i] ); free( commodity_stack ); commodity_stack = NULL; commodity_nstack = 0; }
/** * @brief Frees all the loaded commodities. */ void commodity_free (void) { int i; for (i=0; i<commodity_nstack; i++) commodity_freeOne( &commodity_stack[i] ); free( commodity_stack ); commodity_stack = NULL; commodity_nstack = 0; /* More clean up. */ free( econ_comm ); }