Commit 6e49e057 authored by Karel Slaný's avatar Karel Slaný Committed by Ondřej Surý
Browse files

Fixed a possible memory leak.

parent 6aa8ce9d
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment