commit | 668c0e441d761a79f33eae11c120e01a29f9d4dd | [log] [tgz] |
---|---|---|
author | Kevin Wolf <kwolf@redhat.com> | Thu Nov 17 11:30:08 2016 +0100 |
committer | Jeff Cody <jcody@redhat.com> | Mon Nov 21 17:04:43 2016 -0500 |
tree | 99cb1b5a6c2d1e01e780dfc6675bc31554550b4a | |
parent | c36ed06e9159fa484b711dfdd27ec64d7ac3d17a [diff] |
gluster: Fix use after free in glfs_clear_preopened() This fixes a use-after-free bug introduced in commit 6349c154. We need to use QLIST_FOREACH_SAFE() when freeing elements in the loop. Spotted by Coverity. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Message-id: 1479378608-11962-1-git-send-email-kwolf@redhat.com Signed-off-by: Jeff Cody <jcody@redhat.com>