malloc source and dest