[openib-general] [PATCH] libmthca: fix memory leak in mthca_destroy_qp and mthca_destroy_srq
Jack Morgenstein
jackm at mellanox.co.il
Thu Jan 5 05:54:07 PST 2006
libmthca: fix memory leak in mthca_destroy_qp and mthca_destroy_srq.
Signed-off-by: Jack Morgenstein <jackm at mellanox.co.il>
Index: last_stable/src/userspace/libmthca/src/verbs.c
===================================================================
--- last_stable.orig/src/userspace/libmthca/src/verbs.c 2006-01-05 14:56:55.000000000 +0200
+++ last_stable/src/userspace/libmthca/src/verbs.c 2006-01-05 15:24:41.000000000 +0200
@@ -390,6 +390,7 @@ int mthca_destroy_srq(struct ibv_srq *sr
free(to_msrq(srq)->buf);
free(to_msrq(srq)->wrid);
+ free(to_msrq(srq));
return 0;
}
@@ -565,6 +566,7 @@ int mthca_destroy_qp(struct ibv_qp *qp)
free(to_mqp(qp)->buf);
free(to_mqp(qp)->wrid);
+ free(to_mqp(qp));
return 0;
}
More information about the general
mailing list