projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed tid declaration for non-threaded mode
[yaz-moved-to-github.git]
/
src
/
nmem.c
diff --git
a/src/nmem.c
b/src/nmem.c
index
2c7e202
..
82ce672
100644
(file)
--- a/
src/nmem.c
+++ b/
src/nmem.c
@@
-1,8
+1,8
@@
/*
/*
- * Copyright (C) 1995-2006, Index Data ApS
+ * Copyright (C) 1995-2007, Index Data ApS
* See the file LICENSE for details.
*
* See the file LICENSE for details.
*
- * $Id: nmem.c,v 1.24 2006-08-11 12:50:23 adam Exp $
+ * $Id: nmem.c,v 1.28 2007-01-03 08:42:15 adam Exp $
*/
/**
*/
/**
@@
-254,6
+254,7
@@
static struct nmem_block *get_block(size_t size)
l->next = r->next;
else
freelist = r->next;
l->next = r->next;
else
freelist = r->next;
+ nmem_memory_free -= r->size;
}
else
{
}
else
{
@@
-267,8
+268,8
@@
static struct nmem_block *get_block(size_t size)
r = (struct nmem_block *) xmalloc(sizeof(*r));
r->buf = (char *)xmalloc(r->size = get);
r = (struct nmem_block *) xmalloc(sizeof(*r));
r->buf = (char *)xmalloc(r->size = get);
- nmem_memory_in_use += r->size;
}
}
+ nmem_memory_in_use += r->size;
r->top = 0;
return r;
}
r->top = 0;
return r;
}