* xmlFreeRef: * @lk: A list link * * Deallocate the memory used by a ref definition */
| 2625 | * Deallocate the memory used by a ref definition |
| 2626 | */ |
| 2627 | static void |
| 2628 | xmlFreeRef(xmlLinkPtr lk) { |
| 2629 | xmlRefPtr ref = (xmlRefPtr)xmlLinkGetData(lk); |
| 2630 | if (ref == NULL) return; |
| 2631 | if (ref->value != NULL) |
| 2632 | xmlFree((xmlChar *)ref->value); |
| 2633 | if (ref->name != NULL) |
| 2634 | xmlFree((xmlChar *)ref->name); |
| 2635 | xmlFree(ref); |
| 2636 | } |
| 2637 | |
| 2638 | /** |
| 2639 | * xmlFreeRefTableEntry: |
nothing calls this directly
no test coverage detected