[IBAL] Fix leak of kernel CEPs in passive reject path.
authorftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 14 Aug 2006 19:23:03 +0000 (19:23 +0000)
committerftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 14 Aug 2006 19:23:03 +0000 (19:23 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@453 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/al/al_cm_qp.c

index 7168f26..cf367e7 100644 (file)
@@ -1597,6 +1597,10 @@ ib_cm_rej(
                                deref_al_obj( &h_cm.h_qp->obj );\r
                }\r
        }\r
                                deref_al_obj( &h_cm.h_qp->obj );\r
                }\r
        }\r
+       else\r
+       {\r
+               al_destroy_cep( h_cm.h_al, h_cm.cid, NULL );\r
+       }\r
 \r
        AL_EXIT( AL_DBG_CM );\r
        return status;\r
 \r
        AL_EXIT( AL_DBG_CM );\r
        return status;\r