From: Steinar H. Gunderson Date: Fri, 11 May 2007 11:02:09 +0000 (+1000) Subject: Memory leak in mountd X-Git-Tag: nfs-utils-1-1-1~164 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=1cb4a250fb9f0a8ba34befa47d951430e444a58e;hp=1cb4a250fb9f0a8ba34befa47d951430e444a58e Memory leak in mountd In client_compose(), free() the hostent structure returned before exiting. Normally, gethostbyaddr() returns a pointer to a static struct, but this hostent comes from either get_reliable_hostbyaddr() or get_hostent(), both which return a pointer they privately xmalloc()ed, which thus can and should be free()d. Signed-Off-By: Steinar H. Gunderson ---