* FreeAccessStrategy -- release a BufferAccessStrategy object * * A simple pfree would do at the moment, but we would prefer that callers * don't assume that much about the representation of BufferAccessStrategy. */
| 600 | * don't assume that much about the representation of BufferAccessStrategy. |
| 601 | */ |
| 602 | void |
| 603 | FreeAccessStrategy(BufferAccessStrategy strategy) |
| 604 | { |
| 605 | /* don't crash if called on a "default" strategy */ |
| 606 | if (strategy != NULL) |
| 607 | pfree(strategy); |
| 608 | } |
| 609 | |
| 610 | /* |
| 611 | * GetBufferFromRing -- returns a buffer from the ring, or NULL if the |
no test coverage detected