mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix two memory leaks.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16756 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
b7e0f52277
commit
9c1785f933
@ -393,6 +393,7 @@ qof_load_backend_library (const char *directory, const char* module_name)
|
||||
g_return_val_if_fail(g_module_supported(), FALSE);
|
||||
fullpath = g_module_build_path(directory, module_name);
|
||||
backend = g_module_open(fullpath, G_MODULE_BIND_LAZY);
|
||||
g_free(fullpath);
|
||||
if (!backend) {
|
||||
g_message ("%s: %s\n", PACKAGE, g_module_error ());
|
||||
return FALSE;
|
||||
|
@ -222,9 +222,8 @@ string_free_pdata (QofQueryPredData *pd)
|
||||
|
||||
if (pdata->is_regex)
|
||||
regfree (&pdata->compiled);
|
||||
else
|
||||
g_free (pdata->matchstring);
|
||||
|
||||
g_free (pdata->matchstring);
|
||||
g_free (pdata);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user