Skip to content
Snippets Groups Projects
Commit 5c270972 authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Small fix for the error message

parent 669b6006
No related branches found
No related tags found
No related merge requests found
......@@ -107,7 +107,7 @@ public:
:a_seq(0),mem(&mem),ref_cnt(0)
{
// Allocate the total size of memory
mem.allocate(size);
mem.resize(size);
}
//! Increment the reference counter
......
......@@ -28,7 +28,7 @@ bool HeapMemory::allocate(size_t sz)
if (dm == NULL)
dmOrig = new byte[sz+alignement];
else
std::cerr << "Error memory already allocated\n";
std::cerr << __FILE__ << ":" << __LINE__ << " error memory already allocated\n";
dm = dmOrig;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment