• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

babelfish-for-postgresql / babelfish_extensions / 23887542143
77%

Build:
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 02 Apr 2026 07:04AM UTC
Jobs 1
Files 121
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Apr 2026 06:36AM UTC coverage: 77.059%. Remained the same
23887542143

push

github

web-flow
Fixing memory leaks observed in ASan (#4690)

This commit fixes memory leaks observed when testing with ASan

1. In the function TdsSendRowDescription() , strdup() allocates memory using the system's malloc(), which is completely outside PostgreSQL's memory management. This means the string stored in relMetaDataInfo->partName[1] lives in malloc-heap, not in any PostgreSQL memory context.
By using pstrdup() , it allocates using palloc() inside the current memory context (MessageContext), so it's properly tracked and will be freed when that context is destroyed.

2. Similarly in the function rewrite_if_condition(), strdup uses malloc which is invisible to PostgreSQL's memory management while pstrdup allocates in the current memory context, which gets cleaned up automatically.

Task: BABEL-6422

Authored by : harshdu@amazon.com

2 of 2 new or added lines in 2 files covered. (100.0%)

52999 of 68777 relevant lines covered (77.06%)

404913.48 hits per line

Jobs
ID Job ID Ran Files Coverage
1 23887542143.1 02 Apr 2026 07:04AM UTC 121
77.06
GitHub Action Run
Source Files on build 23887542143
  • Tree
  • List 121
  • Changed 2
  • Source Changed 2
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23887542143
  • dab76755 on github
  • Prev Build on BABEL_5_X_DEV (#23745318212)
  • Next Build on BABEL_5_X_DEV (#23897245222)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc