]> Nishi Git Mirror - serenade.git/commitdiff
will fix memory thing later
authornishi <nishi@0f02c867-ac3d-714e-8a88-971ba1f6efcf>
Tue, 30 Apr 2024 03:40:26 +0000 (03:40 +0000)
committernishi <nishi@0f02c867-ac3d-714e-8a88-971ba1f6efcf>
Tue, 30 Apr 2024 03:40:26 +0000 (03:40 +0000)
git-svn-id: file:///raid/svn-main/nishi-serenade/trunk@94 0f02c867-ac3d-714e-8a88-971ba1f6efcf

Serenade/parser.c

index cd52c731e4b1c82d74691a3bd7e9133ab26fbf27..d1dddc3f44064c1dbcbe783fd97c4376821767d9 100644 (file)
@@ -240,7 +240,6 @@ void sn_generic_free(struct sn_interpreter* sn, struct sn_generic* g) {
        } else if(g->type == SN_TYPE_FUNCTION || g->type == SN_TYPE_VARIABLE) {
                free(g->name);
        }
-       free(g);
        if(sn == NULL) return;
        int i;
        for(i = 0; sn->generics[i] != NULL; i++);