NAME
sp_destroy - free or destroy an object
SYNOPSIS
#include <sophia.h>
int sp_destroy(void *object);
DESCRIPTION
The sp_destroy() function is used to free memory allocated by any Sophia object.
EXAMPLE
void *o = sp_document(db);
void *result = sp_get(db, o);
if (result)
sp_destroy(result);
RETURN VALUE
On success, sp_destroy() returns 0. On error, it returns -1.
SEE ALSO