bare-url 2.5.3 → 2.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/binding.c CHANGED
@@ -193,6 +193,11 @@ bare_url__read_string(js_env_t *env, js_value_t *value, utf8_t *stack, size_t st
193
193
  buffer = result->heap = malloc(utf8_len);
194
194
 
195
195
  if (buffer == NULL) {
196
+ err = js_release_string_view(env, result->view);
197
+ assert(err == 0);
198
+
199
+ result->view = NULL;
200
+
196
201
  err = js_throw_error(env, uv_err_name(UV_ENOMEM), uv_strerror(UV_ENOMEM));
197
202
  assert(err == 0);
198
203
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-url",
3
- "version": "2.5.3",
3
+ "version": "2.5.4",
4
4
  "description": "WHATWG URL implementation for JavaScript",
5
5
  "exports": {
6
6
  "./package": "./package.json",
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file