Freeing memory allocated at C function

Pedro Lacerda kanvuanza at gmail.com
Thu Mar 22 23:27:05 PDT 2012


I'm using some C functions like these:

    char *str = allocateNewString();

And this:

    Object *obj = constructObject();
    // etc
    freeObject(obj);


Do I need to free the memory in both cases? Can I someway register them on
GC?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20120323/8cb5e826/attachment.html>


More information about the Digitalmars-d-learn mailing list