aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-06-11 17:11:38 +0200
committerChristian Grothoff <christian@grothoff.org>2016-06-11 17:11:38 +0200
commitf4b013b3d467f93482a00b208acf3a2874362fe7 (patch)
tree7c4ecd9ecef9fd4f835bc32bed5744111f0b2ba4 /src/util
parent6fb30ce46809a1c444b66911ea846b8a3f820ce1 (diff)
fix leaks
Diffstat (limited to 'src/util')
-rw-r--r--src/util/util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/util.c b/src/util/util.c
index 9defa85ff..1f7931a43 100644
--- a/src/util/util.c
+++ b/src/util/util.c
@@ -84,7 +84,11 @@ TALER_config_get_denom (const struct GNUNET_CONFIGURATION_Handle *cfg,
return GNUNET_NO;
if (GNUNET_OK != TALER_string_to_amount (str,
denom))
+ {
+ GNUNET_free (str);
return GNUNET_SYSERR;
+ }
+ GNUNET_free (str);
return GNUNET_OK;
}