biod.pnpi.spb.ru
/
alexxy
/
gromacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8815c4f
)
Remove superfluous memory allocation.
author
Teemu Murtola
<teemu.murtola@gmail.com>
Sun, 30 Dec 2012 06:34:14 +0000
(08:34 +0200)
committer
Teemu 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
patch
|
blob
|
history
diff --git
a/src/gmxlib/sfactor.c
b/src/gmxlib/sfactor.c
index 9023807f7ff7f1fb13d50edbe89e441fe3123d6f..0cd6a79799a59803be85cdbf8055446a3dd92d78 100644
(file)
--- a/
src/gmxlib/sfactor.c
+++ b/
src/gmxlib/sfactor.c
@@
-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*));