Fix dangling pointer reference in stream_cleanup_files.

Amit Kapila <akapila@postgresql.org>

Commit: 4b82ed6eca41220e50d4712ab929c20030b30d35
Author: Amit Kapila <akapila@postgresql.org>
Date: 2021-03-23T04:13:33Z
Releases: 14.0
Fix dangling pointer reference in stream_cleanup_files.

We can't access the entry after it is removed from dynahash.

Author: Peter Smith
Discussion: https://postgr.es/m/CAHut+Ps-pL++f6CJwPx2+vUqXuew=Xt-9Bi-6kCyxn+Fwi2M7w@mail.gmail.com

Files

PathChange+/−
src/backend/replication/logical/worker.c modified +8 −5

Discussion