Bugzilla – Attachment 317550 Details for
Bug 536207
procps-3.2.8-3.2: missing call to fclose
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Forgot Password
procps-3.2.8-fdleak.dif
procps-3.2.8-fdleak.dif (text/plain), 560 bytes, created by
Dr. Werner Fink
on 2009-09-10 08:15:47 UTC
(
hide
)
Description:
procps-3.2.8-fdleak.dif
Filename:
MIME Type:
Creator:
Dr. Werner Fink
Created:
2009-09-10 08:15:47 UTC
Size:
560 bytes
patch
obsolete
>--- vmstat.c >+++ vmstat.c 2009-09-10 10:10:17.509902189 +0200 >@@ -413,13 +413,12 @@ static void slabheader(void){ > //////////////////////////////////////////////////////////////////////////// > > static void slabformat (void){ >- FILE *fSlab; >+ struct stat fSlab; > struct slab_cache *slabs; > unsigned long nSlab,i,j,k; > const char format[]="%-24s %6u %6u %6u %6u\n"; > >- fSlab=fopen("/proc/slabinfo", "rb"); >- if(!fSlab){ >+ if(stat("/proc/slabinfo", &fSlab) < 0){ > fprintf(stderr, "Your kernel doesn't support slabinfo.\n"); > return; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
Attachments on
bug 536207
: 317550