pgsql: Fix dangling pointer reference in stream_cleanup_files.

From: Amit Kapila <akapila(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix dangling pointer reference in stream_cleanup_files.
Date: 2021-03-23 04:20:22
Message-ID: E1lOYWk-0001SR-Du@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4b82ed6eca41220e50d4712ab929c20030b30d35

Modified Files
--------------
src/backend/replication/logical/worker.c | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message tsunakawa.takay@fujitsu.com 2021-03-23 04:27:12 RE: pgsql: Add a new GUC and a reloption to enable inserts in parallel-mode
Previous Message Tomas Vondra 2021-03-23 04:02:31 pgsql: Use correct spelling of statistics kind