bodand / cg3

Other
0 stars 0 forks source link

fleak multiple open/close in single function #27

Open kisbogdan-kolos opened 11 months ago

kisbogdan-kolos commented 11 months ago

Fleak does not detect file leak when not all opened files are closed in a function.


void fun() {
    FILE *a = fopen(...);
    FILE *b = fopen(...);
    /* ... */
    fclose(a);
    /* b not closed, but fleak doesn't detect. */
}