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->replylen[mf->nreply] = strlen(cp);
|
||||||
mf->reply[mf->nreply++] = cp;
|
mf->reply[mf->nreply++] = cp;
|
||||||
rv++;
|
rv++;
|
||||||
}
|
} else
|
||||||
|
free(cp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ndbfree(nt);
|
ndbfree(nt);
|
||||||
|
|
Loading…
Reference in a new issue