]> Nishi Git Mirror - serenade.git/commitdiff
scope works
authornishi <nishi@0f02c867-ac3d-714e-8a88-971ba1f6efcf>
Sat, 27 Apr 2024 02:14:47 +0000 (02:14 +0000)
committernishi <nishi@0f02c867-ac3d-714e-8a88-971ba1f6efcf>
Sat, 27 Apr 2024 02:14:47 +0000 (02:14 +0000)
git-svn-id: file:///raid/svn-main/nishi-serenade/trunk@68 0f02c867-ac3d-714e-8a88-971ba1f6efcf

Serenade/run.c

index 859bd351e41bab07792b545bbe0c31bec7c42ba9..d7037e41136735b75e6db63d829cce4fbb27d354 100644 (file)
@@ -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;
 }