llvm::sys::Process::GetMallocUsage() Hangs

Dear All,

I am currently modifying KLEE for my research, which calls llvm::sys::Process::GetMallocUsage() to
display some statistics before terminating. However, today I discovered that the call to this function
no longer returns. I am using LLVM 3.4.2. Would anyone has any idea on what I should be looking into?

Thank you in advance.

Best,
Andrew

The cause seems to have been an allocation of array of pointers using new:

VersionedValue **argumentValuesList = new VersionedValue *[numArgs];

The problem disappeared after I replaced the array of pointers with std::vector of pointers.

Best,
Andrew