Skip to content

Commit 338ac21

Browse files
committed
pathman: dsm allocation fix
1 parent 60dda54 commit 338ac21

File tree

2 files changed

+4
-193
lines changed

2 files changed

+4
-193
lines changed

contrib/pathman/dsm_array.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,14 @@ free_dsm_array(DsmArray *arr)
151151
/* set blocks free */
152152
for(;; i++)
153153
{
154-
table->blocks[start + i].is_free = false;
154+
table->blocks[start + i].is_free = true;
155155
if (i * table->block_size >= arr->length)
156156
break;
157157
}
158158

159+
if (arr->offset < table->first_free)
160+
table->first_free = arr->offset;
161+
159162
arr->offset = 0;
160163
arr->length = 0;
161164
}

contrib/pathman/expected/pathman.out

Lines changed: 0 additions & 192 deletions
This file was deleted.

0 commit comments

Comments
 (0)