Signed-off-by: Irena Gannon ([email protected]<mailto:[email protected]>)

This patch fixes a memory leak reported by the debugger:

                *** Memory Usage ***
                Memory block at 0000000000A45E30 allocated in file 
s:\builds\6949\trunk\tools\vstat\user\vstat_main.c line 527
                Memory block at 0000000001700550 allocated in file 
s:\builds\6949\trunk\tools\vstat\user\vstat_main.c line 530
*** End of Memory Usage ***

Index: B:/users/irena/proj1/trunk/tools/vstat/user/vstat_main.c
===================================================================
--- B:/users/irena/proj1/trunk/tools/vstat/user/vstat_main.c    (revision 6951)
+++ B:/users/irena/proj1/trunk/tools/vstat/user/vstat_main.c (revision 6952)
@@ -548,6 +548,8 @@

                
cl_memcpy(vstat_port_info,(ib_port_info_t*)(((ib_smp_t*)mad_out)->data),sizeof(ib_port_info_t));

+             cl_free(mad_out);
+             cl_free(mad_in);

 }

Attachment: vstat_mem.patch
Description: vstat_mem.patch

_______________________________________________
ofw mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw

Reply via email to