Strip a pair of malloc/free