Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
lscsoft
lalsuite
Commits
584f8eed
Commit
584f8eed
authored
Mar 24, 2017
by
Leo Pound Singer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix potential memory leak in error handling
Original: 72f502cdf7e1b4da4ce13c0dd01fff7d7db93dc3
parent
5bb7fb2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
lalinference/src/bayestar_sky_map.c
lalinference/src/bayestar_sky_map.c
+4
-0
No files found.
lalinference/src/bayestar_sky_map.c
View file @
584f8eed
...
@@ -846,7 +846,11 @@ bayestar_pixel *bayestar_sky_map_toa_phoa_snr(
...
@@ -846,7 +846,11 @@ bayestar_pixel *bayestar_sky_map_toa_phoa_snr(
/* Adaptively refine the pixels that contain the most probability. */
/* Adaptively refine the pixels that contain the most probability. */
pixels
=
bayestar_pixels_refine
(
pixels
,
&
len
,
npix0
/
4
);
pixels
=
bayestar_pixels_refine
(
pixels
,
&
len
,
npix0
/
4
);
if
(
!
pixels
)
if
(
!
pixels
)
{
for
(
unsigned
char
k
=
0
;
k
<
3
;
k
++
)
log_radial_integrator_free
(
integrators
[
k
]);
return
NULL
;
return
NULL
;
}
#pragma omp parallel for
#pragma omp parallel for
for
(
unsigned
long
i
=
len
-
npix0
;
i
<
len
;
i
++
)
for
(
unsigned
long
i
=
len
-
npix0
;
i
<
len
;
i
++
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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