Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Oleksii Turkot
CrystFEL
Commits
5b27e129
Commit
5b27e129
authored
Apr 01, 2010
by
Thomas White
Browse files
Fix a couple of memory bugs
parent
fced9d2b
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/cell.c
View file @
5b27e129
...
...
@@ -350,7 +350,6 @@ int cell_get_reciprocal(UnitCell *cell,
gsl_matrix_set
(
m
,
2
,
1
,
cell
->
bz
);
gsl_matrix_set
(
m
,
2
,
2
,
cell
->
cz
);
/* Invert */
/* Invert */
perm
=
gsl_permutation_alloc
(
m
->
size1
);
if
(
perm
==
NULL
)
{
...
...
@@ -381,6 +380,8 @@ int cell_get_reciprocal(UnitCell *cell,
free
(
cell
);
return
-
1
;
}
gsl_permutation_free
(
perm
);
gsl_matrix_free
(
m
);
/* Transpose */
gsl_matrix_transpose
(
inv
);
...
...
src/indexamajig.c
View file @
5b27e129
...
...
@@ -327,9 +327,6 @@ static void *process_image(void *pargsv)
/* Only free cell if found */
free
(
image
.
indexed_cell
);
/* Free detector panel records */
free
(
image
.
det
.
panels
);
done:
free
(
image
.
data
);
free
(
image
.
det
.
panels
);
...
...
@@ -477,7 +474,7 @@ int main(int argc, char *argv[])
}
if
(
prefix
==
NULL
)
{
prefix
=
""
;
prefix
=
strdup
(
""
)
;
}
if
(
nthreads
==
0
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment