Cleaned up public malloc interface