From 6ad9d1c4f045f9fb5dabefe9c2e84b5be1c54762 Mon Sep 17 00:00:00 2001 From: xengineering Date: Thu, 6 Oct 2022 20:44:05 +0200 Subject: Remove free statements with unclear effects It is currently not clear when the libstrophe user has to free certain memory. Because invalid pointers are worse than memory leaks (at the current scope) these calls were removed. --- net.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/net.c b/net.c index d940786..9f2b4f3 100644 --- a/net.c +++ b/net.c @@ -176,9 +176,7 @@ void net_quit(void) { fprintf(stderr, "net_quit()\n"); net_disconnect(); - // TODO is it possible to free xmpp_log_t ? log = NULL; - xmpp_ctx_free(ctx); xmpp_shutdown(); } @@ -205,7 +203,6 @@ void net_disconnect(void) { fprintf(stderr, "net_disconnect()\n"); if (sm_state) { - xmpp_free_sm_state(sm_state); sm_state = NULL; } @@ -237,7 +234,4 @@ void net_send_message(const char* sender, const char* content, xmpp_message_set_body(msg, content); xmpp_send(conn, msg); - xmpp_free(ctx, msg); - xmpp_free(ctx, uuid); - } -- cgit v1.2.3-70-g09d2