• Nikias Bassen's avatar
    xplist: Plug memory leak when converting PLIST_UID nodes to XML · 16f45a04
    Nikias Bassen authored
    In node_to_xml nodes of type PLIST_UID are temporarily converted
    to a PLIST_DICT for an appropriate XML output. Therefore a PLIST_KEY
    and a PLIST_UINT node is created and inserted into the PLIST_DICT
    node. Upon completion, the child nodes of the PLIST_DICT node are
    detached from the original node and freed, however the data of the
    child nodes - the key string and the uint value - are not.
    This commit fixes it.
    16f45a04
plist.c 20.6 KB