Changes between Initial Version and Version 1 of Ticket #3
- Timestamp:
- 10/25/12 09:02:59 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #3 – Description
initial v1 1 In diffusion1d_par.c, there is a global variable bu tthat is a pointer. It is allocated twice (i.e., two mallocs) on rank 0--hence the first is a memory leak.1 In diffusion1d_par.c, there is a global variable buf that is a pointer. It is allocated twice (i.e., two mallocs) on rank 0--hence the first is a memory leak. 2 2 3 3 Also several functions have a local variable named but which shadows the global one. This is probably a bad idea. It would be better to use different names for variables that visible in the same scope.
