A memset immediately after the malloc but before the for loop should take care 
of this problem. The for loop may execute before your other nested 
initialization occurs.

memset(matrix, 0, (size * sizeof(in)));

Satya
Sent from my Verizon Wireless BlackBerry

-----Original Message-----
From: Santosh Navale <santosh.iitm2...@gmail.com>
Date: Mon, 28 Mar 2011 22:08:00 
To: Florian Krohm<brit...@acm.org>
Cc: <valgrind-users@lists.sourceforge.net>
Subject: Re: [Valgrind-users] Problem resolving a Valgrind reported error

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to