add warning when falling back to malloc.