]> git.decadent.org.uk Git - nfs-utils.git/commit
mountd: Plug v4root memory leak
authorChuck Lever <chuck.lever@oracle.com>
Thu, 5 Jan 2012 21:01:22 +0000 (16:01 -0500)
committerSteve Dickson <steved@redhat.com>
Thu, 5 Jan 2012 21:27:05 +0000 (16:27 -0500)
commitcd4f4d13848bd64f98290ef67ef8572d998d3041
tree020748192a7ca80a11af304a1329ecec0b6bfca9
parentfa14db707efd309cd567648a4a0ffdbf06f5e2c9
mountd: Plug v4root memory leak

Valgrind reports that the memory allocated for eep's e_hostname field
was not being freed.  eep is not visible outside of v4root_create(),
so we don't need to strdup() that string.

Introduced by commit 3b777b0 "exports: NFSv4 pseudoroot support
routines" (Dec 1, 2009).

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mountd/v4root.c