From c1eed9ada39e1470e75ee0d15d985437ad7372ed Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sun, 3 Mar 2024 12:20:03 -0500 Subject: [PATCH] Fixed a leak in ssb.getServerIdentity(). --- src/ssb.js.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssb.js.c b/src/ssb.js.c index af396f98..464021d0 100644 --- a/src/ssb.js.c +++ b/src/ssb.js.c @@ -272,7 +272,7 @@ static JSValue _tf_ssb_getPrivateKey(JSContext* context, JSValueConst this_val, static JSValue _tf_ssb_getServerIdentity(JSContext* context, JSValueConst this_val, int argc, JSValueConst* argv) { - JSValue result = JS_NewArray(context); + JSValue result = JS_UNDEFINED; tf_ssb_t* ssb = JS_GetOpaque(this_val, _tf_ssb_classId); if (ssb) {