BUG #15514: process fails on jsonb_populate_recordset query. see simple example below

The Post Office <noreply@postgresql.org>

From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: 4321ip@gmail.com
Date: 2018-11-20T20:49:36Z
Lists: pgsql-bugs
The following bug has been logged on the website:

Bug reference:      15514
Logged by:          4321ip
Email address:      4321ip@gmail.com
PostgreSQL version: 11.1
Operating system:   WindiwsServer 2012 64bit
Description:        

CREATE TYPE myrowtype AS
(
	field jsonb,
	rank double precision
);
SELECT * FROM jsonb_populate_recordset(NULL :: myrowtype, '[]');

.....
Connection to the server has been lost.

Commits

  1. Fix another crash in json{b}_populate_recordset and json{b}_to_recordset.