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 15:51:22 +02:00
parent 252c043409
commit 44bbdbe49d
+2 -2
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 )