ksh/ksh93-leak.dif

12 lines
357 B
Plaintext

--- src/cmd/ksh93/sh/nvdisc.c
+++ src/cmd/ksh93/sh/nvdisc.c 2010-06-29 14:07:19.578925435 +0000
@@ -1347,7 +1347,7 @@ Dt_t *nv_dict(Namval_t* np)
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);
+ struct table *tp;
if(name)
{
if(nv_istable(np))