• Marek Vavrusa's avatar
    Partially ported server to dname reference counting. · 4a259c01
    Marek Vavrusa authored
    No leaks so far with server execution.
    
    * Newly created dnames have refcount=1, caller is responsible for releasing them.
    * Copied dnames have also refcount=1 (as they are new).
    
    To do:
    * Carefully implement more uses of dname not protected by refcounting.
    * Consider renaming dnslib_dname_copy() do _duplicate() as it creates duplicate.
    * Consider shallow copying of dname, as it's possible with refcounting.
    * Test and review.
    
    Commit refs #993.
    4a259c01