jerpelea opened a new pull request, #20325:
URL: https://github.com/apache/nuttx/pull/20325

   ## Summary
   
   Fix two resource leaks in the ELF module removal path.
   
   Free the module registry entry after removing it from the registry, and 
always release the exported symbol table during libelf_uninit().
   
   The exported symbol table may be allocated for any module that exports 
eligible global symbols, independently of whether modinfo.uninitializer is set. 
However, libelf_uninit() previously freed the symbol table only when an 
uninitializer was present. Since .fini_array callbacks are handled separately 
and modinfo.uninitializer may be NULL, affected modules leaked both the exports 
array and the duplicated symbol names when unloaded.
   
   ## Impact
   
   RELEASE
   
   ## Testing
   
   CI


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to