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
84e4e19b
Commit
84e4e19b
authored
Nov 22, 2011
by
Thomas White
Browse files
Don't free() something just before using it
parent
50b0746f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/partial_sim.c
View file @
84e4e19b
...
...
@@ -254,10 +254,6 @@ static void finalise_job(void *vqargs, void *vwargs)
write_chunk
(
qargs
->
stream
,
&
wargs
->
image
,
NULL
,
STREAM_INTEGRATED
);
reflist_free
(
wargs
->
image
.
reflections
);
cell_free
(
wargs
->
image
.
indexed_cell
);
free
(
wargs
);
for
(
i
=
0
;
i
<
NBINS
;
i
++
)
{
qargs
->
n_ref
[
i
]
+=
wargs
->
n_ref
[
i
];
qargs
->
p_hist
[
i
]
+=
wargs
->
p_hist
[
i
];
...
...
@@ -265,6 +261,10 @@ static void finalise_job(void *vqargs, void *vwargs)
qargs
->
n_done
++
;
progress_bar
(
qargs
->
n_done
,
qargs
->
n_to_do
,
"Simulating"
);
reflist_free
(
wargs
->
image
.
reflections
);
cell_free
(
wargs
->
image
.
indexed_cell
);
free
(
wargs
);
}
...
...
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