From Malahal <malahal(a)gmail.com>:
Malahal has uploaded this change for review. (
https://review.gerrithub.io/427946
Change subject: Free group name string properly in proc_export()
......................................................................
Free group name string properly in proc_export()
If there is a client block with CIDR spec but the last client block is
not a CIDR spec, then the code will try to free unallocated memory
leading to a crash! Also, there is a memory leak if there are multiple
client blocks with CIDR spec.
Each client block with CIDR spec needs to free group name string.
Change-Id: I46d4a78d7a6a88f7374e547d59549f098cf1dfcd
Signed-off-by: Malahal Naineni <malahal(a)us.ibm.com>
---
M src/Protocols/NFS/mnt_Export.c
1 file changed, 4 insertions(+), 4 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/46/427946/1
--
To view, visit
https://review.gerrithub.io/427946
To unsubscribe, or for help writing mail filters, visit
https://review.gerrithub.io/settings
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-MessageType: newchange
Gerrit-Change-Id: I46d4a78d7a6a88f7374e547d59549f098cf1dfcd
Gerrit-Change-Number: 427946
Gerrit-PatchSet: 1
Gerrit-Owner: Malahal <malahal(a)gmail.com>