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

Commit993994b

Browse files
committed
more accuracy for scan cleanup
1 parent6822507 commit993994b

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

‎rumscan.c

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,11 @@ rumFillScanKey(RumScanOpaque so, OffsetNumber attnum,
170170

171171
key->outerAddInfoIsNull= true;
172172

173+
key->scanEntry=NULL;
174+
key->entryRes=NULL;
175+
key->addInfo=NULL;
176+
key->addInfoIsNull=NULL;
177+
173178
return;
174179
}
175180

@@ -253,11 +258,16 @@ freeScanKeys(RumScanOpaque so)
253258

254259
if (key->nentries>0)
255260
{
256-
pfree(key->scanEntry);
257-
pfree(key->entryRes);
258-
pfree(key->addInfo);
259-
pfree(key->addInfoIsNull);
260-
pfree(key->queryCategories);
261+
if (key->scanEntry)
262+
pfree(key->scanEntry);
263+
if (key->entryRes)
264+
pfree(key->entryRes);
265+
if (key->addInfo)
266+
pfree(key->addInfo);
267+
if (key->addInfoIsNull)
268+
pfree(key->addInfoIsNull);
269+
if (key->queryCategories)
270+
pfree(key->queryCategories);
261271
}
262272
}
263273

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp