/* Return an allocated memory block back to a specific memory pool.  */
osStatus_t osMemoryPoolFree(osMemoryPoolId_t mp_id, void *block)
/* Return an allocated memory block back to a specific memory pool.  */
osStatus_t osMemoryPoolFree(osMemoryPoolId_t mp_id, void *block)
{
	struct cv2_mslab *mslab = (struct cv2_mslab *)mp_id;
	if (mslab == NULL) {
		return osErrorParameter;
	}
	k_mem_slab_free((struct k_mem_slab *)(&mslab->z_mslab), (void *)block);
	return osOK;
}