Opened 17 years ago

Last modified 12 months ago

#992 new enhancement

Detect leaks with exit() when enable=leakWithExit is used

Reported by: aggro80 Owned by: noone
Priority: Normal Milestone:
Component: Improve check Version:
Keywords: resourceLeak Cc: php-coderrr

Description (last modified by amai)

Leak detection with exit() is disabled by design. Allow detection of such leaks when enable=leakWithExit is used.

void t(void) {
    FILE *a,*b;
    if ((a = fopen("/dev/null", "r")) == NULL)
        exit(EXIT_FAILURE);
    if ((b = fopen("/dev/null", "r")) == NULL)
        exit(EXIT_FAILURE);

    fclose(a);
    fclose(b);
}

From Debian bugs:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=557046

Change History (3)

comment:1 by php-coderrr, 17 years ago

Cc: php-coderrr added

comment:2 by amai, 8 years ago

Description: modified (diff)
Keywords: resourceLeak added
Priority: High

comment:3 by kidkat, 12 months ago

Priority: HighNormal
Note: See TracTickets for help on using tickets.