Verified Commit 8aa279b7 authored by Vladimír Čunát's avatar Vladimír Čunát
Browse files

modules/hints: plug a memory leak in .use_nodata()

It was tiny, but still.
parent ae2bebbf
......@@ -561,10 +561,12 @@ static char* hint_use_nodata(void *env, struct kr_module *module, const char *ar
JsonNode *root_node = json_decode(args);
if (!root_node || root_node->tag != JSON_BOOL) {
return bool2jsonstr(false);
data->use_nodata = root_node->bool_;
return bool2jsonstr(true);
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