Frees the storage associated with a
PGresult
. Every command result should be freed viaPQclear
when it is no longer needed.If the argumentis a
NULL
pointer, no operation is performed.You can keep a
PGresult
object 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 |