C: add leaks detect example