1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

o Put in the 'out of memory' log_err for pool.

This commit is contained in:
Joe Thornber 2002-01-10 09:35:55 +00:00
parent dff36d2a77
commit e2031c81b5
2 changed files with 4 additions and 2 deletions

View File

@ -79,7 +79,7 @@ static struct block *_new_block(size_t s, unsigned alignment)
struct block *b = dbg_malloc(len);
if (!b) {
stack;
log_err("Out of memory.");
return NULL;
}

View File

@ -222,8 +222,10 @@ struct chunk *_new_chunk(struct pool *p, size_t s)
c = p->spare_chunk;
p->spare_chunk = 0;
} else {
if (!(c = dbg_malloc(s)))
if (!(c = dbg_malloc(s))) {
log_err("Out of memory.");
return NULL;
}
c->end = (char *) c + s;
}