Fix two memory leaks around use of privacy_get_system_ids().
[claws.git] / src / compose.c
index bd34f43d84533b7046ac3351ae383fb12b1ba601..08e765b7a39eda55a03b1a01edd140a63d8203c6 100644 (file)
@@ -1321,6 +1321,7 @@ static void compose_force_encryption(Compose *compose, PrefsAccount *account,
                if (privacy_avail && g_slist_length(privacy_avail)) {
                        privacy = (gchar *)(privacy_avail->data);
                }
+               g_slist_free_full(privacy_avail, g_free);
        }
        if (privacy != NULL) {
                if (system) {