summaryrefslogtreecommitdiff
path: root/src/mhd
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-01-20 12:10:44 +0100
committerChristian Grothoff <christian@grothoff.org>2020-01-20 12:10:44 +0100
commit52797133a472266c9e06fb5f66bd8793e443bd7e (patch)
tree0852b2d8d445fd22c58c9f6900fb30f94cfbc0e5 /src/mhd
parent8a4201c43bd70032eecfeaa41a5d0b56a391c66a (diff)
downloadexchange-52797133a472266c9e06fb5f66bd8793e443bd7e.tar.gz
exchange-52797133a472266c9e06fb5f66bd8793e443bd7e.tar.bz2
exchange-52797133a472266c9e06fb5f66bd8793e443bd7e.zip
fix signal initialization race on startup with shutdown
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 fac97412..5af946d8 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);
}