Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > Vthread > Vthread__Blocked_Matrix_Mult__Bench
changeset 3:4007d97740a5
fixed: uninitialized memory
| author | Merten Sach <msach@mailbox.tu-berlin.de> |
|---|---|
| date | Thu, 02 Jun 2011 14:43:18 +0200 |
| parents | 46ceb3dd0f0a |
| children | 16a32ca59bef |
| files | src/Application/VPThread__Matrix_Mult/Divide_Pr.c |
| diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line diff
1.1 --- a/src/Application/VPThread__Matrix_Mult/Divide_Pr.c Sat Nov 20 08:39:05 2010 +0100 1.2 +++ b/src/Application/VPThread__Matrix_Mult/Divide_Pr.c Thu Jun 02 14:43:18 2011 +0200 1.3 @@ -503,6 +503,9 @@ 1.4 newSubMatrix->origStartCol = startCol; 1.5 newSubMatrix->alreadyCopied = FALSE; 1.6 newSubMatrix->numUsesLeft = numUses; //can free after this many 1.7 + //Prevent uninitialized memory 1.8 + newSubMatrix->copySingleton = NULL; 1.9 + newSubMatrix->copyTransSingleton = NULL; 1.10 1.11 subMatrices[ rowOffset + colIdx ] = newSubMatrix; 1.12 }
