The danger here is not the double deletion which doesn't risk to happen accidentally because you never delete `PGresult` pointers, but rather calling `PQclear()` twice -- and the const-ness of this operation does protect against this.