X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fconnection.h;h=600c9542b7769460c10ed4bcb55d4e71a132f18c;hb=d93d4f9dbd09bc5e53a9b5eeb1cc94939fee32bc;hp=23bde77677e4daf91145653e68ab9804ed7a852f;hpb=3d787920d51a35e74e442c7265be3b13b69ad8e4;p=tinc diff --git a/src/connection.h b/src/connection.h index 23bde776..600c9542 100644 --- a/src/connection.h +++ b/src/connection.h @@ -79,7 +79,7 @@ typedef struct legacy_ctx_t { legacy_crypto_t out; /* cipher/digest we will use to send data to him */ } legacy_ctx_t; -legacy_ctx_t *new_legacy_ctx(rsa_t *rsa) ATTR_MALLOC; +legacy_ctx_t *new_legacy_ctx(rsa_t *rsa); void free_legacy_ctx(legacy_ctx_t *ctx); #endif @@ -131,8 +131,8 @@ extern connection_t *everyone; extern void init_connections(void); extern void exit_connections(void); -extern connection_t *new_connection(void) ATTR_MALLOC; extern void free_connection(connection_t *c); +extern connection_t *new_connection(void) ATTR_MALLOC ATTR_DEALLOCATOR(free_connection); extern void connection_add(connection_t *c); extern void connection_del(connection_t *c); extern bool dump_connections(struct connection_t *c);