Remove superfluous memory allocation.
authorTeemu Murtola <teemu.murtola@gmail.com>
Sun, 30 Dec 2012 06:34:14 +0000 (08:34 +0200)
committerTeemu Murtola <teemu.murtola@gmail.com>
Sun, 30 Dec 2012 06:35:35 +0000 (08:35 +0200)
The next line allocates the memory again.

Fixes #918.

Change-Id: I6f727cf059ccdc5d407b8398b9b29db625c120b8

src/gmxlib/sfactor.c

index 9023807f7ff7f1fb13d50edbe89e441fe3123d6f..0cd6a79799a59803be85cdbf8055446a3dd92d78 100644 (file)
@@ -131,7 +131,6 @@ extern t_complex *** rc_tensor_allocation(int x, int y, int z)
   t_complex ***t;
   int i,j;
 
-  snew(t,x);
   t = (t_complex ***)calloc(x,sizeof(t_complex**));
   if(!t) exit(fprintf(stderr,"\nallocation error"));
   t[0] = (t_complex **)calloc(x*y,sizeof(t_complex*));