Skip to content

Commit

Permalink
[gnc-xml-backend.cpp] g_free char* from g_path_get_dirname
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherlam committed Feb 27, 2023
1 parent 89e63ef commit 47b85d3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libgnucash/backend/xml/gnc-xml-backend.cpp
Expand Up @@ -136,7 +136,10 @@ GncXmlBackend::session_begin(QofSession* session, const char* new_uri,
if (!check_path(m_fullpath.c_str(),
mode == SESSION_NEW_STORE || mode == SESSION_NEW_OVERWRITE))
return;
m_dirname = g_path_get_dirname (m_fullpath.c_str());

auto dirname = g_path_get_dirname (m_fullpath.c_str());
m_dirname = dirname;
g_free (dirname);



Expand Down

0 comments on commit 47b85d3

Please sign in to comment.