]> Nishi Git Mirror - serenade.git/commitdiff
uhh
authornishi <nishi@0f02c867-ac3d-714e-8a88-971ba1f6efcf>
Tue, 30 Apr 2024 02:15:29 +0000 (02:15 +0000)
committernishi <nishi@0f02c867-ac3d-714e-8a88-971ba1f6efcf>
Tue, 30 Apr 2024 02:15:29 +0000 (02:15 +0000)
git-svn-id: file:///raid/svn-main/nishi-serenade/trunk@86 0f02c867-ac3d-714e-8a88-971ba1f6efcf

Serenade/interpreter.c

index 7850b7d047f7ec88a1a56a1f250d809a0e372b5b..ee36afc279c06b46ed34027e64948cc8f0218d29 100644 (file)
@@ -184,6 +184,7 @@ void sn_interpreter_free(struct sn_interpreter* sn) {
                free(sn->variables[i]->key);
                if(sn->variables[i]->value != NULL) sn_generic_free(sn, sn->variables[i]->value);
                free(sn->variables[i]);
+               sn->variables[i]->value = NULL;
        }
        free(sn->variables);
        for(i = 0; sn->generics[i] != NULL; i++) {