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
9d397a6a
Commit
9d397a6a
authored
Jun 14, 2010
by
Thomas White
Committed by
Thomas White
Feb 22, 2012
Browse files
Fix memory leaks
parent
18cb33d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/detector.c
View file @
9d397a6a
...
...
@@ -240,6 +240,11 @@ struct detector *get_detector_geometry(const char *filename)
ERROR
(
"Unrecognised field '%s'
\n
"
,
path
[
1
]);
}
for
(
i
=
0
;
i
<
n1
;
i
++
)
free
(
bits
[
i
]);
for
(
i
=
0
;
i
<
n2
;
i
++
)
free
(
path
[
i
]);
free
(
bits
);
free
(
path
);
}
while
(
rval
!=
NULL
);
if
(
det
->
n_panels
==
-
1
)
{
...
...
src/pattern_sim.c
View file @
9d397a6a
...
...
@@ -474,6 +474,8 @@ skip:
free
(
powder
);
free
(
cell
);
free
(
intensities
);
free
(
outfile
);
free
(
filename
);
return
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