summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2022-10-06 20:44:05 +0200
committerxengineering <me@xengineering.eu>2022-10-06 20:44:05 +0200
commit6ad9d1c4f045f9fb5dabefe9c2e84b5be1c54762 (patch)
tree7eebc120c9418c709fd5c78e5a3aeafa94a5bd20
parent285a92e509174b6c4578ae0d9824196d33a41d76 (diff)
downloadlimox-6ad9d1c4f045f9fb5dabefe9c2e84b5be1c54762.tar
limox-6ad9d1c4f045f9fb5dabefe9c2e84b5be1c54762.tar.zst
limox-6ad9d1c4f045f9fb5dabefe9c2e84b5be1c54762.zip
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.
-rw-r--r--net.c6
1 files changed, 0 insertions, 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);
-
}