about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorSteffen Jaeckel <jaeckel-floss@eyet-services.de>2023-05-21 10:57:59 +0200
committerSteffen Jaeckel <jaeckel-floss@eyet-services.de>2023-05-21 10:59:13 +0200
commit638b15c6d9d525418638b469b0045230385e59bf (patch)
tree4893723c4882a32b75958f4eed6bec22723bb362 /src
parent879525c61b8ec540279a58cffe19dd2fab668c2f (diff)
downloadprofani-tty-638b15c6d9d525418638b469b0045230385e59bf.tar.gz
Fix memleak
introduced in 5d3c8ce7c164f74f606ff06d1adf849821591a51

Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
Diffstat (limited to 'src')
-rw-r--r--src/xmpp/iq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c
index eb72178d..41a2e89d 100644
--- a/src/xmpp/iq.c
+++ b/src/xmpp/iq.c
@@ -1615,6 +1615,7 @@ _version_get_handler(xmpp_stanza_t* const stanza)
     const char* from = xmpp_stanza_get_from(stanza);
     ProfAccount* account = accounts_get_account(session_get_account_name());
     auto_char char* client = account->client != NULL ? strdup(account->client) : NULL;
+    account_free(account);
     bool is_custom_client = client != NULL;
     gchar* custom_version_str = NULL;
     if (is_custom_client) {
#n141'>141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219