summaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorMichael Scherer <misc@redhat.com>2017-02-24 22:32:06 +0100
committerNiels de Vos <ndevos@redhat.com>2017-05-29 10:54:57 +0000
commitff1a1694112f141991e24284b90f568506aaca41 (patch)
treeb9463fbf924c2190ff0a42dcb34d6490676bfdc3 /rpc
parentde3368a53d9b2d8e035fe070c011a1b78d34559a (diff)
nfs/netgroups: do not free the same file twice
Coverity warn about a code path where 'file' is freed twice. And reading the code, I also found that 'line' shouldn't be freed using GF_FREE since it was allocated by getline. Also call _ng_deinit_parsers() in the success case, preventing leaking two 'struct parser' upon multiple calls to ng_file_parse(). Change-Id: I05d71fdbf3b48a25d35e7a56a4c245ceb2dd6ed9 BUG: 789278 Signed-off-by: Michael Scherer <misc@redhat.com> [ndevos: add _ng_deinit_parsers() cleanup suggested by Nithya] Reviewed-on: https://review.gluster.org/16759 Reviewed-by: Niels de Vos <ndevos@redhat.com> Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Diffstat (limited to 'rpc')
0 files changed, 0 insertions, 0 deletions