Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Pointer in the Static Variable is not cleared when unldByModuleId is c

Hi All,

I am having memory leak, like if i create .o file out of C++ code which has the function local static variable. Once after my run, when i call "unldByModuleId " function to move the current module i.e .o file and put the new one, i am getting a memory leak, where the pointer in the static variable is not cleared. Is there any way we can free the pointer during the call of "unldByModuleId ".


Please help me in this regard

Thanks

Senthil

Comments

  • gustavosserragustavosserra Member Posts: 201
    Sorry, I didn't understand your problem. Could you post some code?

    : Hi All,
    :
    : I am having memory leak, like if i create .o file out of C++ code
    : which has the function local static variable. Once after my run,
    : when i call "unldByModuleId " function to move the current module
    : i.e .o file and put the new one, i am getting a memory leak, where
    : the pointer in the static variable is not cleared. Is there any way
    : we can free the pointer during the call of "unldByModuleId ".
    :
    :
    : Please help me in this regard
    :
    : Thanks
    :
    : Senthil
Sign In or Register to comment.