summaryrefslogtreecommitdiff
path: root/src/mhd
diff options
context:
space:
mode:
Diffstat (limited to 'src/mhd')
-rw-r--r--src/mhd/mhd_legal.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mhd/mhd_legal.c b/src/mhd/mhd_legal.c
index fac974127..5af946d8f 100644
--- a/src/mhd/mhd_legal.c
+++ b/src/mhd/mhd_legal.c
@@ -485,7 +485,10 @@ load_language (struct TALER_MHD_Legal *legal,
lang);
d = opendir (dname);
if (NULL == d)
+ {
+ GNUNET_free (dname);
return;
+ }
for (struct dirent *de = readdir (d);
NULL != de;
de = readdir (d))
@@ -497,7 +500,7 @@ load_language (struct TALER_MHD_Legal *legal,
load_terms (legal, path, lang, fn);
}
closedir (d);
- free (dname);
+ GNUNET_free (dname);
}