Displaying 1 result from an estimated 1 matches for "ndfree".
Did you mean:
dfree
2006 Oct 20
1
[patch] Memory leak from namei_zone in an error path in nfsrv_rename
...fromnd.ni_dvp = NULL;
fromnd.ni_vp = NULL;
tond.ni_dvp = NULL;
tond.ni_vp = NULL;
if (error) {
- fromnd.ni_cnd.cn_flags &= ~HASBUF;
- tond.ni_cnd.cn_flags &= ~HASBUF;
+ NDFREE(&fromnd, NDF_ONLY_PNBUF);
+ NDFREE(&tond, NDF_ONLY_PNBUF);
}
} else {
if (error == -1)
error = 0;
}
/* fall through */
I will be happy to answer any questions wrt this. Please provide me some
feedba...