diff --git a/libgnucash/core-utils/test/test-userdata-dir-invalid-home.c b/libgnucash/core-utils/test/test-userdata-dir-invalid-home.c index b81d521333..3ec1e98946 100644 --- a/libgnucash/core-utils/test/test-userdata-dir-invalid-home.c +++ b/libgnucash/core-utils/test/test-userdata-dir-invalid-home.c @@ -83,6 +83,8 @@ main(G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv) * The code should fall back to using the temporary * directory in that case. */ g_setenv("HOME", homedir, TRUE); + g_free (homedir); + for (i = 0; strs2[i].funcname != NULL; i++) { char *daout;