Fix memleak in cmd_omemo_gen()

This commit is contained in:
Michael Vetter
2024-06-19 11:40:23 +02:00
parent 8a62d8e88b
commit b04650fb1c

View File

@@ -8621,6 +8621,7 @@ cmd_omemo_gen(ProfWin* window, const char* const command, gchar** args)
ui_update();
ProfAccount* account = accounts_get_account(session_get_account_name());
omemo_generate_crypto_materials(account);
account_free(account);
cons_show("OMEMO cryptographic materials generated. Your Device ID is %d.", omemo_device_id());
return TRUE;
#else