Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Richard Gobeille
EDuke32
Commits
03e24d85
Commit
03e24d85
authored
Oct 15, 2021
by
nukeykt
Committed by
NY00123
Jul 07, 2022
Browse files
engine: fix Bfree calls in loadkvxfrombuf
parent
835548fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/build/src/voxmodel.cpp
View file @
03e24d85
...
...
@@ -1032,7 +1032,7 @@ voxmodel_t *loadkvxfrombuf(const char *kvxbuffer, int32_t length)
if
(
mip1leng
>
length
-
4
)
{
// Invalid KVX file
B
free
(
buffer
);
X
free
(
buffer
);
return
NULL
;
}
memcpy
(
&
voxsiz
,
longptr
,
sizeof
(
vec3_t
));
...
...
@@ -1122,7 +1122,7 @@ voxmodel_t *loadkvxfrombuf(const char *kvxbuffer, int32_t length)
DO_FREE_AND_NULL
(
vcol
);
vnum
=
vmax
=
0
;
DO_FREE_AND_NULL
(
vcolhashead
);
B
free
(
buffer
);
X
free
(
buffer
);
return
vm
;
}
...
...
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