a simple memory allocation with malloc