Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit67fb7a8

Browse files
author
Alexander Korotkov
committed
More memory leak fix.
1 parent2399f69 commit67fb7a8

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

‎rumget.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ collectMatchBitmap(RumBtreeData *btree, RumBtreeStack *stack,
396396
tbm_add_tuples(scanEntry->matchBitmap,
397397
ipd,RumGetNPosting(itup), false);
398398
scanEntry->predictNumberResult+=RumGetNPosting(itup);
399+
pfree(ipd);
399400
}
400401

401402
/*
@@ -423,6 +424,8 @@ startScanEntry(RumState *rumstate, RumScanEntry entry)
423424
entry->curAddInfoIsNull= true;
424425
entry->offset=InvalidOffsetNumber;
425426
entry->list=NULL;
427+
entry->addInfo=NULL;
428+
entry->addInfoIsNull=NULL;
426429
entry->gdi=NULL;
427430
entry->nlist=0;
428431
entry->matchBitmap=NULL;

‎rumscan.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,10 @@ freeScanKeys(RumScanOpaque so)
281281
}
282282
if (entry->list)
283283
pfree(entry->list);
284+
if (entry->addInfo)
285+
pfree(entry->addInfo);
286+
if (entry->addInfoIsNull)
287+
pfree(entry->addInfoIsNull);
284288
if (entry->matchIterator)
285289
tbm_end_iterate(entry->matchIterator);
286290
if (entry->matchBitmap)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp