Commit 5eb157dd authored by Kirill Terekhov's avatar Kirill Terekhov
Browse files

fix memory issue

parent 105da7bf
...@@ -1624,7 +1624,7 @@ namespace INMOST ...@@ -1624,7 +1624,7 @@ namespace INMOST
for(size_type q = oldnchunks2; q < newnchunks2; q++) for(size_type q = oldnchunks2; q < newnchunks2; q++)
{ {
assert(chunks[q] == NULL); assert(chunks[q] == NULL);
chunks[q] = new element[block_size];//(element *)malloc(block_size); chunks[q] = new element[block_size/sizeof(element)];//(element *)malloc(block_size);
#if defined(DEBUGMEM) #if defined(DEBUGMEM)
if( chunks[q] == NULL ) {std::cout << __FILE__ << ":" << __LINE__ << "allocation returns NULL\n";} if( chunks[q] == NULL ) {std::cout << __FILE__ << ":" << __LINE__ << "allocation returns NULL\n";}
#endif #endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment