[PATCH 1/9] ibacm: Release the refcnt on the correct client

sean.hefty-ral2JQCrhuEAvxtiuMwx3w
2014-03-23T20:18:13Z

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-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
---
src/acm.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/acm.c b/src/acm.c
index 82f9431..c403aa8 100644
--- a/src/acm.c
+++ b/src/acm.c
@@ -452,7 +452,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);