From: Daniel KouĊ™il Date: Thu, 8 Dec 2011 10:39:41 +0000 (+0000) Subject: close the connection from the destroy routine X-Git-Tag: merge_30_head_take2_after~19 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=5091e6bd344d5f91be2b97d4c220d5e93fbbfa9c;p=jra1mw.git close the connection from the destroy routine --- diff --git a/emi.canl.canl-c/src/canl.c b/emi.canl.canl-c/src/canl.c index 2058ffd..c3e069b 100644 --- a/emi.canl.canl-c/src/canl.c +++ b/emi.canl.canl-c/src/canl.c @@ -302,6 +302,8 @@ int canl_io_destroy(canl_ctx cc, canl_io_handler io) if (!io_cc) return set_error(glb_cc, EINVAL, posix_error, "Invalid io handler"); + canl_io_close(cc, io); + io_destroy(glb_cc, io_cc); free (io_cc);