Skip to content

Commit

Permalink
[dialog-file-access] plug a char* leak
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherlam committed Mar 16, 2023
1 parent f6d0138 commit ef0c9de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gnucash/gnome-utils/dialog-file-access.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ geturl( FileAccessWindow* faw )
{
path = gtk_file_chooser_get_filename (faw->fileChooser);
if ( !path ) /* file protocol was chosen but no filename was set */
{
g_free (type);
return NULL;
}
}
else /* db protocol was chosen */
{
Expand Down

0 comments on commit ef0c9de

Please sign in to comment.