diff options
author | Steven Luong <sluong@cisco.com> | 2019-03-05 20:07:31 -0800 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2019-03-07 10:26:12 +0000 |
commit | 8905347d815a9ca0a7453351dbee7c94ebb14e49 (patch) | |
tree | 135d5b115cdc9caad277f46744940dd4a800fbc1 /test/test_l2bd.py | |
parent | 313f1b9e5b964fc2e6f654576e2dd50a904846d6 (diff) |
vlibmemory: coverity woes
Coverity complains about resource leak after open when fd gets 0 with below
warning.
off_by_one: Testing whether handle tfd is strictly greater than zero is
suspicious. tfd leaks when it is zero.
It is right. 0 is a valid fd. -1 is not.
Change-Id: I22c2eb75b99bb6209921b9f874190cbbdf10e6ce
Signed-off-by: Steven Luong <sluong@cisco.com>
Diffstat (limited to 'test/test_l2bd.py')
0 files changed, 0 insertions, 0 deletions