Skip to main content

xmlFree

Function xmlFree 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn xmlFree(ptr: *mut c_void)
Expand description

Free allocated memory.

§UPSTREAM-PARITY

void xmlFree(void *ptr);

Frees memory previously allocated with xmlMalloc, xmlMallocAtomic, or xmlRealloc. If ptr is NULL, no operation is performed.

§SAFETY

  • ptr must be a valid pointer from xmlMalloc/xmlMallocAtomic/xmlRealloc, or NULL
  • After this call, ptr must not be dereferenced