libxlio icon indicating copy to clipboard operation
libxlio copied to clipboard

issue: 4457054 Fix segfault at exit if initialization fails

Open pasis opened this issue 7 months ago • 0 comments

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)

pasis avatar May 20 '25 12:05 pasis