aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mhd/mhd_legal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mhd/mhd_legal.c b/src/mhd/mhd_legal.c
index 00a5e678c..476b01c91 100644
--- a/src/mhd/mhd_legal.c
+++ b/src/mhd/mhd_legal.c
@@ -563,6 +563,7 @@ TALER_MHD_legal_load (const struct GNUNET_CONFIGURATION_Handle *cfg,
"Could not open directory");
GNUNET_free (legal->terms_etag);
GNUNET_free (legal);
+ GNUNET_free (path);
return NULL;
}
for (struct dirent *de = readdir (d);
@@ -576,7 +577,7 @@ TALER_MHD_legal_load (const struct GNUNET_CONFIGURATION_Handle *cfg,
load_language (legal, path, lang);
}
closedir (d);
- free (path);
+ GNUNET_free (path);
return legal;
}