Skip to content

Commit

Permalink
use proper function for state destruction
Browse files Browse the repository at this point in the history
  • Loading branch information
shaitan committed Apr 24, 2019
1 parent b2020fe commit 27765e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,7 @@ struct dnet_net_state *dnet_state_create(struct dnet_node *n,
err_out_dup_destroy:
dnet_sock_close(n, st->write_s);
err_out_free:
free(st);
dnet_state_destroy(st);
err_out_close:
dnet_sock_close(n, s);

Expand Down

0 comments on commit 27765e1

Please sign in to comment.