Frees the storage associated with a
PGresult. Every command result should be freed viaPQclearwhen it is no longer needed.If the argumentis a
NULLpointer, no operation is performed.You can keep a
PGresultobject around for as long as you need it; it does not go away when you issue a new command, nor even if you close the connection. To get rid of it, you must callPQclear. Failure to do this will result in memory leaks in your application.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(in) | :: | res |