libxlio
libxlio copied to clipboard
issue: 4457054 Fix segfault at exit if initialization fails
Description
In free_libxlio_resources(), we try to print report for g_p_net_device_table_mgr, however, it can be NULL if XLIO initialization fails. Check the pointer to avoid NULL pointer dereference.
What
Segfault fix.
Why ?
Segfault fix.
Change type
What kind of change does this PR introduce?
- [x] Bugfix
- [ ] Feature
- [ ] Code style update
- [ ] Refactoring (no functional changes, no api changes)
- [ ] Build related changes
- [ ] CI related changes
- [ ] Documentation content changes
- [ ] Tests
- [ ] Other
Check list
- [ ] Code follows the style de facto guidelines of this project
- [ ] Comments have been inserted in hard to understand places
- [ ] Documentation has been updated (if necessary)
- [ ] Test has been added (if possible)