library/src/javascript/JSON/BP-JSON.cc
// destroys output buffers (dangling data)
destroys output buffers (dangling data)
destroys output buffers ( dangling data )
BP_ERROR_T BP_JSONDestroyOutputBuffers(P_BP_JSON json)
{
	if(!json)
		return ERR_FAILURE;
	if(!json->json_out)
		return ERR_FAILURE;
	ht_free(json->system_hreg, json->json_out);
	json->json_out = NULL;
	json->json_out_len = 0;
	return ERR_SUCCESS;
}
BP_ERROR_T BP_JSONDestroyOutputBuffers ( P_BP_JSON json ) { if ( ! json ) return ERR_FAILURE ; if ( ! json -> json_out ) return ERR_FAILURE ; ht_free ( json -> system_hreg , json -> json_out ) ; json -> json_out = NULL ; json -> json_out_len = 0 ; return ERR_SUCCESS ; }
destroys output buffers (dangling data)
destroys output buffers ( dangling data )
// destroy the data // return indicating success