mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[gnc-module.c] free a GList* properly
g_list_free (current) was a NOP because current became NULL after the preceding GList traversal.
This commit is contained in:
parent
383276579e
commit
9ddb9e8215
@ -257,11 +257,7 @@ gnc_module_system_refresh(void)
|
|||||||
|
|
||||||
}
|
}
|
||||||
/* free the search dir strings */
|
/* free the search dir strings */
|
||||||
for (current = search_dirs; current; current = current->next)
|
g_list_free_full (search_dirs, g_free);
|
||||||
{
|
|
||||||
g_free(current->data);
|
|
||||||
}
|
|
||||||
g_list_free(current);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user