diff options
author | Karel Slany <karel.slany@nic.cz> | 2016-08-09 15:45:46 +0200 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2016-08-11 14:06:45 +0200 |
commit | 6e49e0578900c903857e96f4a0b40cfb0edb45c1 (patch) | |
tree | 5dc58d03aeeb176f1ee36a6e60375ddfbe88bb2a | |
parent | Removed or rephrased some comments. (diff) | |
download | knot-resolver-6e49e0578900c903857e96f4a0b40cfb0edb45c1.tar.xz knot-resolver-6e49e0578900c903857e96f4a0b40cfb0edb45c1.zip |
Fixed a possible memory leak.
-rw-r--r-- | modules/cookies/cookiectl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/cookies/cookiectl.c b/modules/cookies/cookiectl.c index 9f475ffc..21af0d0b 100644 --- a/modules/cookies/cookiectl.c +++ b/modules/cookies/cookiectl.c @@ -518,6 +518,7 @@ static bool config_apply_json(struct kr_cookie_ctx *ctx, JsonNode *root_node) return false; } if (!obtain_secret(root_node, &new_srvr_secret, NAME_SERVER_SECRET)) { + free(new_clnt_secret); return false; } |