diff --git a/src/ui/console.c b/src/ui/console.c index 01be3464..5c0a4e53 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -206,7 +206,6 @@ _cons_check_version(gboolean not_available_msg) if (release_is_new(latest_release)) { win_save_vprint(console, '-', NULL, 0, 0, "", "A new version of Profanity is available: %s", latest_release); win_save_println(console, "Check for details."); - free(latest_release); win_save_println(console, ""); } else { if (not_available_msg) { @@ -217,6 +216,7 @@ _cons_check_version(gboolean not_available_msg) cons_alert(); } + free(latest_release); } }