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:
Andreas Köhler 2007-12-28 21:44:25 +00:00
parent b7e0f52277
commit 9c1785f933
2 changed files with 2 additions and 2 deletions

View File

@ -393,6 +393,7 @@ qof_load_backend_library (const char *directory, const char* module_name)
g_return_val_if_fail(g_module_supported(), FALSE); g_return_val_if_fail(g_module_supported(), FALSE);
fullpath = g_module_build_path(directory, module_name); fullpath = g_module_build_path(directory, module_name);
backend = g_module_open(fullpath, G_MODULE_BIND_LAZY); backend = g_module_open(fullpath, G_MODULE_BIND_LAZY);
g_free(fullpath);
if (!backend) { if (!backend) {
g_message ("%s: %s\n", PACKAGE, g_module_error ()); g_message ("%s: %s\n", PACKAGE, g_module_error ());
return FALSE; return FALSE;

View File

@ -222,9 +222,8 @@ string_free_pdata (QofQueryPredData *pd)
if (pdata->is_regex) if (pdata->is_regex)
regfree (&pdata->compiled); regfree (&pdata->compiled);
else
g_free (pdata->matchstring);
g_free (pdata->matchstring);
g_free (pdata); g_free (pdata);
} }