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

babelfish-for-postgresql / babelfish_extensions / 23895391488
76%
BABEL_5_X_DEV: 77%

Build:
Build:
LAST BUILD BRANCH: jira-babel-6404-part2
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 02 Apr 2026 10:35AM UTC
Jobs 1
Files 120
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 10:10AM UTC coverage: 76.325% (+0.003%) from 76.322%
23895391488

push

github

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

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%)

50791 of 66546 relevant lines covered (76.32%)

404681.6 hits per line

Jobs
ID Job ID Ran Files Coverage
1 23895391488.1 02 Apr 2026 10:35AM UTC 120
76.32
GitHub Action Run
Source Files on build 23895391488
  • Tree
  • List 120
  • Changed 3
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23895391488
  • 382bede6 on github
  • Prev Build on BABEL_4_X_DEV (#23840935429)
  • Next Build on BABEL_4_X_DEV (#23937271562)
  • 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