summaryrefslogtreecommitdiff
path: root/contrib/tsm_system_time/tsm_system_time.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/tsm_system_time/tsm_system_time.c')
-rw-r--r--contrib/tsm_system_time/tsm_system_time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/tsm_system_time/tsm_system_time.c b/contrib/tsm_system_time/tsm_system_time.c
index c9c71d8c3af..1041258ea1a 100644
--- a/contrib/tsm_system_time/tsm_system_time.c
+++ b/contrib/tsm_system_time/tsm_system_time.c
@@ -179,7 +179,7 @@ system_time_samplescangetsamplesize(PlannerInfo *root,
static void
system_time_initsamplescan(SampleScanState *node, int eflags)
{
- node->tsm_state = palloc0(sizeof(SystemTimeSamplerData));
+ node->tsm_state = palloc0_object(SystemTimeSamplerData);
/* Note the above leaves tsm_state->step equal to zero */
}