Skip to content

Commit ef28057

Browse files
committed
ws: fix connection deref
1 parent b63a870 commit ef28057

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ws.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ static void conn_destroy(void *arg)
4949
struct ws_conn *wsc = arg;
5050
char *json = NULL;
5151

52-
mem_deref(wsc->c);
52+
wsc->c = mem_deref(wsc->c);
5353

5454
if (wsc->sess && wsc->sess->user) {
5555
wsc->sess->connected = false;

0 commit comments

Comments
 (0)