[geany/geany-plugins] 3ba7bc: geanysendmail: Fix invalid free

Colomban Wendling git-noreply at xxxxx
Thu Jun 25 16:31:05 UTC 2015


Branch:      refs/heads/enhancement/revisit_strings
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Thu, 25 Jun 2015 16:31:05 UTC
Commit:      3ba7bccd9aa8cbf12c8ed3aed78567101a10a864
             https://github.com/geany/geany-plugins/commit/3ba7bccd9aa8cbf12c8ed3aed78567101a10a864

Log Message:
-----------
geanysendmail: Fix invalid free

I can't be sure the intended behavior wasn't clearing the address, but
it doesn't seem to make sense to do so here.


Modified Paths:
--------------
    geanysendmail/src/geanysendmail.c

Modified: geanysendmail/src/geanysendmail.c
1 lines changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -144,7 +144,6 @@ send_as_attachment(G_GNUC_UNUSED GtkMenuItem *menuitem, G_GNUC_UNUSED gpointer g
 				if (! utils_string_replace_all(cmd_str, "%r", address))
  					ui_set_statusbar(FALSE,
 					_("Recipient address placeholder not found. The executed command might have failed."));
-					g_free(address);
 			}
 			else
 			{



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list