Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

Marshal.FreeHGlobal(bufferIntPtr) memory leak used in HttpModule Callback

$
0
0

In HttpModule callback, Marshal.AllocHGlobal(size) is ued to initialized a buffer pointer for unmanaged code processing. After processing,  use Marshal.FreeHGlobal to free it. But memory leak is observed.

When calling the same logic in a standalone c# application, no memory leak problem.

The code logic is about the same as below: 


Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>