summaryrefslogtreecommitdiffstats
path: root/support/nfs/svc_socket.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2016-12-06 13:07:14 -0500
committerSteve Dickson <steved@redhat.com>2016-12-20 13:29:04 -0500
commit8a051f2eefa9eeb034ffbff567b645c367d4a4e4 (patch)
tree599a1885df77317620c7633fd4db3e1c8511d1cd /support/nfs/svc_socket.c
parenta834c67ad9eecfbccd068c4917345499f6c911a7 (diff)
downloadnfs-utils-8a051f2eefa9eeb034ffbff567b645c367d4a4e4.tar.gz
nfs-utils-8a051f2eefa9eeb034ffbff567b645c367d4a4e4.tar.xz
nfs-utils-8a051f2eefa9eeb034ffbff567b645c367d4a4e4.zip
conffile: free image of config file after parsing
conffile allocates memory and reads in the config file. It then parses the file, using strdup() to take a copy of any string that it uses, so after conf_parse() there are no references in to the allocated file image. conffile does not free this image. It keeps a pointer, but never uses it in an interesing way, and never frees it. This is a little clumsy and interfers with a future patch which will support the inclusion of subordinate config files. So free 'new_conf_addr' when finished with it, and discard the 'conf_addr' variable that stored it. This has an insignificant performance consequence in that we node always free everything in the hash table, even when we know it must be empty. Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/nfs/svc_socket.c')
0 files changed, 0 insertions, 0 deletions