From 9fbc8203d066b72876b9b79bdbbbc7ebd83d2711 Mon Sep 17 00:00:00 2001 From: dzaima Date: Fri, 2 Jul 2021 17:10:44 +0300 Subject: [PATCH] =?UTF-8?q?free=20what=20should=20be=20freed=20in=20?= =?UTF-8?q?=E2=9F=A8=E2=9F=A9/=F0=9D=95=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/builtins/sfns.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/builtins/sfns.c b/src/builtins/sfns.c index c7bc64e9..3faac5c1 100644 --- a/src/builtins/sfns.c +++ b/src/builtins/sfns.c @@ -226,11 +226,11 @@ B slash_c2(B t, B w, B x) { if (isArr(x) && rnk(x)==1 && isArr(w) && rnk(w)==1 && depth(w)==1) { usz wia = a(w)->ia; usz xia = a(x)->ia; - B xf = getFillQ(x); if (RARE(wia!=xia)) { - if (wia==0) return x; + if (wia==0) { dec(w); return x; } thrF("/: Lengths of components of 𝕨 must match 𝕩 (%s ≠ %s)", wia, xia); } + B xf = getFillQ(x); usz ri = 0; if (TI(w).elType==el_i32) {