ndb/cs: fix memory leak (charles forsyth)
This commit is contained in:
parent
8c837c7bf6
commit
7468752ea2
1 changed files with 2 additions and 1 deletions
|
@ -1241,7 +1241,8 @@ lookup(Mfile *mf)
|
|||
mf->replylen[mf->nreply] = strlen(cp);
|
||||
mf->reply[mf->nreply++] = cp;
|
||||
rv++;
|
||||
}
|
||||
} else
|
||||
free(cp);
|
||||
}
|
||||
}
|
||||
ndbfree(nt);
|
||||
|
|
Loading…
Reference in a new issue