Skip to the task
Layout
Back to classic view

You are looking at lesson 12. Your place is still lesson 3, task 1: Conditions.

CHECKTask 14 of 20 · step 6: Drills: check yourself

Where's the leak?

A function allocates t, reads a file and, when count == 0, returns 0 at once. Where's the leak?

Stuck?

The early return without free(t): LeakSanitizer – detected memory leaks.