| # | Line 260 | Line 260 | namespace oopse { | |
|---|---|---|
| 260 | //close the file and delete the buffer | |
| 261 | fin.close(); | |
| 262 | internalBuf_.str(fbuf); | |
| 263 | < | delete fbuf; |
| 263 | > | delete [] fbuf; |
| 264 | }else{ | |
| 265 | fileSize = FileNotExists; | |
| 266 | commStatus = MPI_Bcast(&fileSize, 1, MPI_LONG, masterNode, MPI_COMM_WORLD); | |
| # | Line 299 | Line 299 | namespace oopse { | |
| 299 | commStatus = MPI_Bcast(fbuf, fileSize + 1, MPI_CHAR, masterNode, MPI_COMM_WORLD); | |
| 300 | ||
| 301 | internalBuf_.str(fbuf); | |
| 302 | < | delete fbuf; |
| 302 | > | delete [] fbuf; |
| 303 | ||
| 304 | } else if (fileSize == FileNotExists ) { | |
| 305 | return false; | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |