Xilinx / zynqmp-pspcie-epdma

Other
2 stars 3 forks source link

ep_mem_desc_table memory leak #4

Closed ThomasCameronSego closed 7 months ago

ThomasCameronSego commented 7 months ago

ep_mem_desc_table only appears to be freed in the case of an error happening after its allocation - if the function exp_dma_initiate_synchronous_transfer completes successfully the ptr is left dangling.

This is technically a device managed allocation, but it is still poor design to allow it to leak on every successful call to exp_dma_initiate_synchronous_transfer

ThomasCameronSego commented 7 months ago

Was a non issue - Through a fair amount of misdirection the ep_mem_desc_table does indeed get freed.