From: Philippe Waroquiers Date: Wed, 12 Nov 2014 21:10:37 +0000 (+0000) Subject: Follow up 14714: use a real malloc cost centre instead of an empty string X-Git-Tag: svn/VALGRIND_3_11_0~833 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c0e46ecd86340a8f27c0e21059d59c780f3bbbd;p=thirdparty%2Fvalgrind.git Follow up 14714: use a real malloc cost centre instead of an empty string git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14715 --- diff --git a/coregrind/m_main.c b/coregrind/m_main.c index 403955870f..6542600d01 100644 --- a/coregrind/m_main.c +++ b/coregrind/m_main.c @@ -599,7 +599,7 @@ void main_process_cmd_line_options ( /*OUT*/Bool* logging_to_fd, nextpos = startpos + VG_(strlen)(startpos); if (startpos != nextpos) { VG_(clo_error_markers)[m] - = VG_(malloc)("", nextpos - startpos + 1); + = VG_(malloc)("main.mpclo.2", nextpos - startpos + 1); VG_(memcpy)(VG_(clo_error_markers)[m], startpos, nextpos - startpos); VG_(clo_error_markers)[m][nextpos - startpos] = '\0';