From 2b8d8b89cfa62c9ee260f436827b494bd2147e69 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Tue, 2 May 2023 10:11:27 -0400 Subject: [PATCH] feat: fix memory leak in join function. --- mumble | Bin 112860 -> 112876 bytes src/mumble.c | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/mumble b/mumble index 23369bf4c35707e37aa6eb94780b407cad83e016..88bccdbebdce36ca35839e11202ac8c628477480 100755 GIT binary patch delta 7052 zcmZvh2~-u=8OP_MlK1otrA-Jyjw>x0&bAgz*q7`#?&rmo;z zF`HuVFwEui^X#$5WOJ=9NLHMpGT3)F$bNg-9%g%tw!vO~K-P}o*;?4f(`neZE=yYr zYQ0`(Yfu;Lga`9%dU=3-&^}|EO}fi4doty`%cRtXV3hSfwo?vlV~n(;*bZa+GHrzI zX6s{{#`YjJ!gj>U+VN~l+4fNf?BQY3-Y=wH$Mz6?4O^ZfZ5rF3u)Uj7+=jV&y0lZc z^W$vSQWb3VOL;b5&9;?oHr2uEZ%X?+?)(R~@6!d?#!hLox%TgD57JfG-@PSmBinzo zT}iQn4Ri7P(*A+1K2Rn(lFDG?!sMC_wqx0TpSHnzKa{oe*%q-aqtmdJf0gzrw#(Um zKwYr4T)T+veQYC1A7YpXyJW4?c`w@?lmlD%uCz{)huOYJ8(}wIlXfC^J{y>~5%#Iu zY&+X`r~|g_`mMEpW4nvK9%4kbekAQczG82(4gHi-JrQOthjkB6>>ebetfVTBVSav_ z9l`b>)xlN`l|ehTS!@&N0_=Bg$cbli=OVVx(N)-N?wriFitRdz)s3iEx$}Cqo7sA< zQMn#r4*f#5u3=rnx|g=;hS|b-e3$JJwy)A@w7!!k_OfkZD|+aCwEp&0+1gq4r9f*v z#4wlrN7@Bk{2tqnDF?Rm-_m}c?RBgFQsi@>k5`hd#Mq25^vLkY@^x!kUC&b zeIjd}%Oi*FG5Q*|_6=!&!nO0*)>BHTVcz|rw25rjvwf4QU`Oz(rnB9_b`{mZKEXjd z_OXDy0D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vZ^tm}772 zO>T|c_N^AZop0UaxzHsu?3US*0-93&s{0$9qiMKP4lm?M=tARx=@ojD~r!= z_z*nB4z{NK$LMKi%}=0f{~i5w`L*C_L|}$NyI~H4Q+Lt>wVCBEK3ioLnr9b6lilXz zk%w6XPvf&d+YxF0XfAA)RM+hD3v{tISsbC;wVtTUi&KzxE_fM#*&0YB_u_QV$Bce$ zq97^-$H_TS%8T*hUHYOmmR_!or`Hy{qkhh@)6Cdr>RX&3D(R@-Lw{YI>M}1MYXYUP zH{Knn+~%w6_SK2}1;QP8YNwbX+})i!MP>Yw;?A`gN7G9ASi#4Ie5~fbA<8nSW z@bNxA-XHLFihR#zKDBD&+nO0#s`>Noz@AQFh>q^gPB9!7j(-$&A3q}MBB(eiqFbC0 ztzqJ9pzWlX;VRqdvy#hpVyodbiatt;30ylV5*&V3{=n!{BHxv~OGYN|l93aw$Olh} z1lN34^I7SZItVqcj#b?*K{JzL1D~G~$^Qo?bpJna4WJ{G9@yS3^2d(+BP{TnZZX>t w`VUxObdSh)wDTXF+5_b{)$PBB4Ze*T(~?Osf&D$g>#$DoRu2dCcf_Rs1!kWTpa1{> diff --git a/src/mumble.c b/src/mumble.c index d62ae88..4412705 100644 --- a/src/mumble.c +++ b/src/mumble.c @@ -451,7 +451,7 @@ lispval* builtin_join(lispval* l) LISPVAL_ASSERT(temp->type == LISPVAL_QEXPR, "Error: function join not passed a q expression with other q-expressions"); for (int j = 0; j < temp->count; j++) { - lispval_append_child(result, temp->cell[j]); + lispval_append_child(result, clone_lispval(temp->cell[j])); } } return result;