Skip to content

Commit e239c9a

Browse files
committed
Was freeing the wrong level
buf is a pointer to the pointer we allocated.
1 parent 27f2c7e commit e239c9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/conn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1571,7 +1571,7 @@ static size_t sm_state_serialize(xmpp_conn_t *conn, unsigned char **buf)
15711571

15721572
err_serialize:
15731573
strophe_error(conn->ctx, "conn", "Can't serialize more data, buffer full");
1574-
strophe_free(conn->ctx, buf);
1574+
strophe_free(conn->ctx, *buf);
15751575
return 0;
15761576
}
15771577

0 commit comments

Comments
 (0)