projects
/
users
/
rhaas
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f54d3b6
)
Fix a couple of XXXs.
author
Robert Haas
<rhaas@postgresql.org>
Thu, 12 Jun 2014 19:44:48 +0000
(15:44 -0400)
committer
Robert Haas
<rhaas@postgresql.org>
Thu, 12 Jun 2014 19:44:48 +0000
(15:44 -0400)
src/backend/utils/mmgr/balloc.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/utils/mmgr/balloc.c
b/src/backend/utils/mmgr/balloc.c
index b587d9dd563908ef2610e253cfd39f8993cd85f0..e2da5fad8601d93d0b4eee15b06510df66b644ee 100644
(file)
--- a/
src/backend/utils/mmgr/balloc.c
+++ b/
src/backend/utils/mmgr/balloc.c
@@
-299,7
+299,7
@@
BlockAllocatorAlloc(MemoryContext context, Size size)
if (region == NULL ||
!FreePageManagerGet(region->fpm, npages, &first_page))
{
- /* XXX. Free the span. */
+ pfree(span);
BlockAllocatorMemoryError(bcontext);
return NULL;
}
@@
-1019,7
+1019,8
@@
BlockAllocatorEnsureActiveBlock(char *base, AllocatorRegion *region,
if (region == NULL ||
!FreePageManagerGet(region->fpm, npages, &first_page))
{
- /* XXX. Free the span, if any. */
+ if (span != NULL)
+ pfree(span);
return false;
}
ptr = fpm_page_to_pointer(fpm_segment_base(region->fpm), first_page);