Fix relcache reference leak
authorPeter Eisentraut
Sat, 11 Apr 2020 07:44:14 +0000 (09:44 +0200)
committerPeter Eisentraut
Sat, 11 Apr 2020 07:44:14 +0000 (09:44 +0200)
Introduced by 83fd4532a72179c370e318075a10e0e2aa832024

src/backend/catalog/pg_publication.c

index 68f6887b383a175bfb1706891c03e5c12d3e2675..09946be788de31192c585defc383fb2d30374399 100644 (file)
@@ -398,9 +398,9 @@ GetAllTablesPublicationRelations(bool pubviaroot)
        }
 
        table_endscan(scan);
-       table_close(classRel, AccessShareLock);
    }
 
+   table_close(classRel, AccessShareLock);
    return result;
 }