template

template after adding malloc with tome of free