Re: [Patch]Documentation/vm/slabinfo.c: clean up this code

2007-10-05 Thread WANG Cong
On Fri, Oct 05, 2007 at 12:17:41PM -0700, Christoph Lameter wrote: >On Fri, 5 Oct 2007, WANG Cong wrote: > >> >> This patch does the following cleanups for Documentation/vm/slabinfo.c: >> >> - Fix two memory leaks; > >For user space code? Memory will be released as soon as the program >term

Re: [Patch]Documentation/vm/slabinfo.c: clean up this code

2007-10-05 Thread Christoph Lameter
On Fri, 5 Oct 2007, WANG Cong wrote: > > This patch does the following cleanups for Documentation/vm/slabinfo.c: > > - Fix two memory leaks; For user space code? Memory will be released as soon as the program terminates. > - Constify some char pointers; > - Use snprintf inst

[Patch]Documentation/vm/slabinfo.c: clean up this code

2007-10-05 Thread WANG Cong
This patch does the following cleanups for Documentation/vm/slabinfo.c: - Fix two memory leaks; - Constify some char pointers; - Use snprintf instead of sprintf in case of buffer overflow; - Fix some indentations; - Other little improvements. And it is aga