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 )
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 , 17 years ago
| Cc: | added |
|---|
comment:2 by , 8 years ago
| Description: | modified (diff) |
|---|---|
| Keywords: | resourceLeak added |
| Priority: | → High |
comment:3 by , 12 months ago
| Priority: | High → Normal |
|---|
Note:
See TracTickets
for help on using tickets.