common: use free directly instead of an Alloc(0)

Easier to understand the intent. And avoid false positive in coverity
This commit is contained in:
Gregory Hainaut 2016-08-15 13:18:47 +02:00
parent 252c043409
commit 44bbdbe49d
1 changed files with 2 additions and 2 deletions

View File

@ -184,7 +184,7 @@ public:
virtual ~ScopedAlloc() throw()
{
Alloc(0);
safe_free(this->m_buffer);
}
virtual void Alloc( size_t newsize )
@ -232,7 +232,7 @@ public:
virtual ~ScopedAlignedAlloc() throw()
{
Alloc(0);
safe_aligned_free(this->m_buffer);
}
virtual void Alloc( size_t newsize )