From 6a4df8efc9243e087f0db3c6d58d7f63bcd91da4 Mon Sep 17 00:00:00 2001 From: Alex Kasko Date: Thu, 4 Apr 2024 12:53:10 +0100 Subject: [PATCH] Free zeros buffer Signed-off-by: Alex Kasko --- contrib/babelfishpg_tds/src/backend/tds/tdstypeio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/babelfishpg_tds/src/backend/tds/tdstypeio.c b/contrib/babelfishpg_tds/src/backend/tds/tdstypeio.c index 79de35f680..24398e2ce3 100644 --- a/contrib/babelfishpg_tds/src/backend/tds/tdstypeio.c +++ b/contrib/babelfishpg_tds/src/backend/tds/tdstypeio.c @@ -1166,6 +1166,7 @@ TdsTypeNumericToDatum(StringInfo buf, int scale) decStringOrig = decString; len = strlen(decString) - 1; pfree(tempString); + pfree(zeros); } if (num != 0) {