Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
Lima
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
35
Issues
35
List
Boards
Labels
Milestones
JIRA
JIRA
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LimaGroup
Lima
Commits
50cde7c9
Commit
50cde7c9
authored
Apr 08, 2019
by
Alejandro Homs Puron
Committed by
operator for beamline
Apr 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MemBuffer: check munmap return value
parent
8c440f39
Pipeline
#10018
passed with stages
in 9 minutes and 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
common/src/MemUtils.cpp
common/src/MemUtils.cpp
+3
-1
No files found.
common/src/MemUtils.cpp
View file @
50cde7c9
...
...
@@ -185,7 +185,9 @@ void MemBuffer::Allocator::release(MemBuffer& buffer)
#ifdef __unix
if
(
useMmap
(
size
))
{
int
real_size
=
getPageAlignedSize
(
size
);
munmap
(
ptr
,
real_size
);
if
(
munmap
(
ptr
,
real_size
)
!=
0
)
throw
LIMA_COM_EXC
(
Error
,
"Error in munmap: "
)
<<
strerror
(
errno
);
}
else
{
free
(
ptr
);
}
...
...
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