From: Florian Krohm Date: Thu, 18 Sep 2014 18:34:19 +0000 (+0000) Subject: Remove a few useless asserts after memory allocation. X-Git-Tag: svn/VALGRIND_3_11_0~979 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0919dfb7546d86344cf8639a5999b61712449212;p=thirdparty%2Fvalgrind.git Remove a few useless asserts after memory allocation. The called allocators don't return NULL. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14553 --- diff --git a/coregrind/m_debuginfo/misc.c b/coregrind/m_debuginfo/misc.c index 430d4357f0..271fd0103d 100644 --- a/coregrind/m_debuginfo/misc.c +++ b/coregrind/m_debuginfo/misc.c @@ -46,7 +46,6 @@ void* ML_(dinfo_zalloc) ( const HChar* cc, SizeT szB ) { 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 @@ HChar* ML_(dinfo_strdup) ( const HChar* cc, const HChar* str ) { 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; }