Nishant Puri has uploaded this change for review.

View Change

Fix five AddressSanitizer direct memory leaks

Release blocks that LeakSanitizer reported as direct leaks:
- Free the sockaddr key when an nfs_ip_name cache entry expires or is
removed. HashTable_Del was dropping the stored key.
- Record the v4.1 backchannel auth flavor so an AUTH_SYS credential is
destroyed with the channel. AUTH_NONE remains the shared static auth.
- Drop the extra fullpath refstr taken while scanning exports by path.
- Free the CB_COMPOUND4res tag allocated while decoding a callback reply.
- Free the NSM nodename allocated by the notify thread, and give each
SM_NOTIFY its own copy so that string can be released.

Change-Id: I4526589cf9a15b261e8c4917167296f14c22bda1
Signed-off-by: Nishant Puri <npuri@redhat.com>
---
M src/MainNFSD/nfs_rpc_callback.c
M src/Protocols/NLM/nsm.c
M src/support/export_mgr.c
M src/support/nfs_ip_name.c
4 files changed, 51 insertions(+), 4 deletions(-)

git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/23/1257223/1

To view, visit change 1257223. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I4526589cf9a15b261e8c4917167296f14c22bda1
Gerrit-Change-Number: 1257223
Gerrit-PatchSet: 1
Gerrit-Owner: Nishant Puri <npuri@redhat.com>