Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Thomas Jahns
yaxt
Commits
ca406216
Commit
ca406216
authored
Mar 03, 2020
by
Thomas Jahns
🤸
Browse files
Fix resource leak in error case.
parent
c15971f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/xt_xmap_intersection.c
View file @
ca406216
...
...
@@ -622,7 +622,9 @@ xt_xmap_intersection_new(int num_src_intersections,
int
first_missing_pos
=
0
;
while
((
first_missing_pos
<
(
num_dst_indices
-
1
))
&&
(
found_index_mask
[
first_missing_pos
]))
++
first_missing_pos
;
free
(
found_index_mask
);
free
(
index_positions
);
xmap_intersection_delete
((
Xt_xmap
)
xmap
);
print_miss_msg
(
dst_idxlist
,
first_missing_pos
,
comm
,
__FILE__
,
__LINE__
);
}
...
...
Write
Preview
Supports
Markdown
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