|
From: <sv...@va...> - 2014-09-18 18:34:26
|
Author: florian
Date: Thu Sep 18 18:34:19 2014
New Revision: 14553
Log:
Remove a few useless asserts after memory allocation.
The called allocators don't return NULL.
Modified:
trunk/coregrind/m_debuginfo/misc.c
Modified: trunk/coregrind/m_debuginfo/misc.c
==============================================================================
--- trunk/coregrind/m_debuginfo/misc.c (original)
+++ trunk/coregrind/m_debuginfo/misc.c Thu Sep 18 18:34:19 2014
@@ -46,7 +46,6 @@
void* v;
vg_assert(szB > 0);
v = VG_(arena_malloc)( VG_AR_DINFO, cc, szB );
- vg_assert(v);
VG_(memset)(v, 0, szB);
return v;
}
@@ -65,7 +64,6 @@
void* ML_(dinfo_memdup) ( const HChar* cc, void* str, SizeT nStr ) {
void* dst = VG_(arena_malloc)( VG_AR_DINFO, cc, nStr );
- vg_assert(dst);
VG_(memcpy)(dst, str, nStr);
return dst;
}
|