]> git.openfabrics.org - ~shefty/ibacm.git/commitdiff
ibacm: Release the refcnt on the correct client
authorSean Hefty <sean.hefty@intel.com>
Thu, 20 Mar 2014 06:00:56 +0000 (23:00 -0700)
committerSean Hefty <sean.hefty@intel.com>
Tue, 8 Apr 2014 22:42:42 +0000 (15:42 -0700)
Release the reference on the client that we're referencing,
and not the one at the front of the array.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
src/acm.c

index 02272e3c4d3d24b588d358b303a3e8fe4e2641ff..c13b06c94ca97d9e3d63ab5994331a7eff35c640 100644 (file)
--- a/src/acm.c
+++ b/src/acm.c
@@ -458,7 +458,7 @@ static void
 acm_free_req(struct acm_request *req)
 {
        acm_log(2, "%p\n", req);
-       (void) atomic_dec(&client->refcnt);
+       (void) atomic_dec(&req->client->refcnt);
        free(req);
 }