Browse Source

initialize ref_count correctly

release0.1.5
Georg Hopp 12 years ago
parent
commit
9230978b03
  1. 1
      src/utils/memory.c

1
src/utils/memory.c

@ -78,6 +78,7 @@ newElement(size_t size)
{
struct memSegment * element = malloc(size);
element->ref_count = 1;
element->size = size;
element->ptr = (void*)element + sizeof(struct memSegment);

Loading…
Cancel
Save