mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 03:18:53 +00:00
Prevent segfault
This commit is contained in:
@@ -743,6 +743,10 @@ JSC__JSValue ZigString__to16BitValue(const ZigString* arg0, JSC__JSGlobalObject*
|
||||
|
||||
static void free_global_string(void* str, void* ptr, unsigned len)
|
||||
{
|
||||
// i don't understand why this happens
|
||||
if (ptr == nullptr)
|
||||
return;
|
||||
|
||||
ZigString__free_global(reinterpret_cast<const unsigned char*>(ptr), len);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user