[M] Change in ...nfs-ganesha[next]: Fix five AddressSanitizer direct memory leaks
Nishant Puri has uploaded this change for review. ( https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1257223?usp=email ) Change subject: Fix five AddressSanitizer direct memory leaks ...................................................................... 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 https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1257223?usp=email To unsubscribe, or for help writing mail filters, visit https://review.gerrithub.io/settings?usp=email 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>
participants (1)
-
Nishant Puri (GerritHub)