]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
[ipoib] Fix a memory leak.
authortzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 12 Oct 2008 07:34:57 +0000 (07:34 +0000)
committertzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 12 Oct 2008 07:34:57 +0000 (07:34 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1@1644 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

branches/WOF2-0/trunk/ulp/ipoib/kernel/ipoib_port.c

index 0bc6294b18bd898cbd701586f2a4998430dff09f..8105ac2e7f14ceacd6fd43a038e59b095e06a02f 100644 (file)
@@ -5041,6 +5041,7 @@ __endpt_mgr_add_bcast(
                p_port->port_num, p_mcast_rec );\r
        if( status != IB_SUCCESS )\r
        {\r
+               cl_obj_destroy( &p_endpt->obj );\r
                IPOIB_PRINT_EXIT( TRACE_LEVEL_ERROR, IPOIB_DBG_ERROR,\r
                        ("ipoib_create_mcast_endpt returned %s\n",\r
                        p_port->p_adapter->p_ifc->get_err_str( status )) );\r