Navigation Menu

Skip to content

Commit

Permalink
Fix memory leak when the user cancels the matching process
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlaroche committed Oct 8, 2021
1 parent c321eae commit be75a43
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gnucash/import-export/ofx/gnc-ofx-import.c
Expand Up @@ -1130,7 +1130,11 @@ gnc_ofx_match_done (GtkDialog *dialog, gpointer user_data)
/* The the user did not click OK, don't process the rest of the
* transaction, don't go to the next of xfile.
*/
if (info->response != GTK_RESPONSE_OK) return;
if (info->response != GTK_RESPONSE_OK)
{
g_free (info);
return;
}

if (info->trans_list)
{
Expand Down

0 comments on commit be75a43

Please sign in to comment.