From: nishi Date: Sat, 27 Apr 2024 02:14:47 +0000 (+0000) Subject: scope works X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=f9d4787425277bf9da911e69678bc15408db74a6;p=serenade.git scope works git-svn-id: file:///raid/svn-main/nishi-serenade/trunk@68 0f02c867-ac3d-714e-8a88-971ba1f6efcf --- diff --git a/Serenade/run.c b/Serenade/run.c index 859bd35..d7037e4 100644 --- a/Serenade/run.c +++ b/Serenade/run.c @@ -52,6 +52,7 @@ struct sn_generic* run_code(struct sn_interpreter* sn, int argc, struct sn_gener for(i = 0; gens[i] != NULL; i++) { _sn_run(sn, gens[i]); } + free(sn->local_variables); sn->local_variables = old_kv; return r; }