Free memory previously allocated by the Malloc method, allowing a NULL pointer.
PRUint32 FreeIf (void * aPtr)=0;
The method has the following parameter:
aPtr |
A pointer to the memory to be freed or NULL. |
NS_OK on success, non-zero error code on failure.
Frees the memory at the specified location, if aPtr is not NULL.