diff options
author | Florian Dold <florian@dold.me> | 2021-07-28 21:03:14 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-07-28 21:03:14 +0200 |
commit | ff78b7b4003aa33e05c9f30125afdfff24c98eae (patch) | |
tree | 95a201c167ae312dea746de318f9ec0cace8b782 /src/util | |
parent | 3012383a1682c3bda9da12c15bfa7c0c384bc757 (diff) | |
download | gnunet-ff78b7b4003aa33e05c9f30125afdfff24c98eae.tar.gz gnunet-ff78b7b4003aa33e05c9f30125afdfff24c98eae.zip |
-fix memleak
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/configuration.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/configuration.c b/src/util/configuration.c index 016088eee..1ba9aab05 100644 --- a/src/util/configuration.c +++ b/src/util/configuration.c | |||
@@ -526,6 +526,8 @@ handle_inline (struct GNUNET_CONFIGURATION_Handle *cfg, | |||
526 | } | 526 | } |
527 | if (source_filename) | 527 | if (source_filename) |
528 | { | 528 | { |
529 | /* Possible that this secret section has been inlined before */ | ||
530 | GNUNET_free (cs->hint_inlined_from_filename); | ||
529 | cs->hint_inlined_from_filename = GNUNET_strdup (source_filename); | 531 | cs->hint_inlined_from_filename = GNUNET_strdup (source_filename); |
530 | cs->hint_inlined_from_line = source_lineno; | 532 | cs->hint_inlined_from_line = source_lineno; |
531 | } | 533 | } |