Menu

malloc/free instead of new/delete

Anonymous
2011-03-23
2013-04-22
  • Anonymous

    Anonymous - 2011-03-23

    Hi

    DefaultValueAllocator (json_value.cpp) uses malloc in duplicateStringValue and free in releaseStringValue.

    I have custom allocator where new and delete goes through managed allocation.

    Is there any definition to switch to new and delete in case of c++?

     
  • David Ashirov

    David Ashirov - 2011-05-17

    I was looking for the same. found in another project ( libjson ) although it's quite more involved to build right.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.