mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
[mujs] The same "trick" as for quickjs. Do not free header
This commit is contained in:
parent
dc8f8d9b6d
commit
1d6fe91858
@ -258,10 +258,10 @@ process_xhr_headers(char *head, struct mjs_xhr *x)
|
||||
add_to_string(&hh, normalized_value);
|
||||
mem_free_set(&item->value, hh.source);
|
||||
}
|
||||
mem_free(header);
|
||||
} else {
|
||||
add_hash_item(responseHeaders, header, strlen(header), stracpy(normalized_value));
|
||||
}
|
||||
mem_free(header);
|
||||
mem_free(value);
|
||||
}
|
||||
x->status = status;
|
||||
|
Loading…
Reference in New Issue
Block a user