Hi,

we've found a memory leak caused by forgotten initialization. In 
src/cmd/ksh93/sh/nvdisc.c:1350, tp is allocated twice:

Namval_t *nv_mount(Namval_t *np, const char *name, Dt_t *dict)
{
        Namval_t *mp, *pp=0;
        struct table *tp = newof((struct table*)0, struct table,1,0);
        if(name)
        {
                if(nv_istable(np))
                        pp = np;
                else
                        pp = nv_lastdict();
        }
        if(!(tp = newof((struct table*)0, struct table,1,0)))
                return(0);
        if(name)
...
...



Michal 
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to