diff options
Diffstat (limited to 'src/backend/replication')
-rw-r--r-- | src/backend/replication/slot.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/replication/slot.c b/src/backend/replication/slot.c index 719e531eb90..646ba2a78fa 100644 --- a/src/backend/replication/slot.c +++ b/src/backend/replication/slot.c @@ -2730,6 +2730,8 @@ check_synchronized_standby_slots(char **newval, void **extra, GucSource source) /* GUC extra value must be guc_malloc'd, not palloc'd */ config = (SyncStandbySlotsConfigData *) guc_malloc(LOG, size); + if (!config) + return false; /* Transform the data into SyncStandbySlotsConfigData */ config->nslotnames = list_length(elemlist); |