Skip to content

Commit

Permalink
Fixes use ater free in shm disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
davidvossel committed Jul 22, 2013
1 parent 73827cf commit a6b41b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ipc_shm.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@ qb_ipcs_shm_disconnect(struct qb_ipcs_connection *c)
if (c->setup.u.us.sock > 0) {
qb_ipcc_us_sock_close(c->setup.u.us.sock);
(void)c->service->poll_fns.dispatch_del(c->setup.u.us.sock);
qb_ipcs_connection_unref(c);
c->setup.u.us.sock = -1;
qb_ipcs_connection_unref(c);
}
}
if (c->state == QB_IPCS_CONNECTION_SHUTTING_DOWN ||
Expand Down

0 comments on commit a6b41b2

Please sign in to comment.