 <p>Add 3 to your allocation amount. Allocate the memory. If the returned address isn't already a multiple of 4, round it up until it is. (The most you'd have to round up is 3, which is why you pad your allocation by that much in advance.)</p> <p>When you free the memory, remember to free the original address, not the rounded-up value.</p>