Opened 14 years ago

Last modified 14 years ago

#3 new defect

diffusion1d buf variable — at Initial Version

Reported by: siegel Owned by:
Priority: major Milestone:
Component: diffusion1d Version:
Keywords: buf Cc:

Description

In diffusion1d_par.c, there is a global variable but that is a pointer. It is allocated twice (i.e., two mallocs) on rank 0--hence the first is a memory leak.

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.

Change History (0)

Note: See TracTickets for help on using tickets.