From 652bc54bc849a03a0ab3c504b7aed09c354e2274 Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Mon, 29 Sep 2014 17:09:42 -0500 Subject: [PATCH] free latest_release regardless of its validity --- src/ui/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }