Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
c7c55c1a
Unverified
Commit
c7c55c1a
authored
Apr 15, 2020
by
Christian Brauner
Committed by
Stéphane Graber
Apr 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
memory_utils: directly NULL ptr in free_disarm()
This should keep coverity happy. Fixes: Coverity 1461757. Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
3769a87b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
memory_utils.h
src/lxc/memory_utils.h
+4
-4
No files found.
src/lxc/memory_utils.h
View file @
c7c55c1a
...
@@ -41,10 +41,10 @@ define_cleanup_function(FILE *, fclose);
...
@@ -41,10 +41,10 @@ define_cleanup_function(FILE *, fclose);
define_cleanup_function
(
DIR
*
,
closedir
);
define_cleanup_function
(
DIR
*
,
closedir
);
#define __do_closedir call_cleaner(closedir)
#define __do_closedir call_cleaner(closedir)
#define free_disarm(ptr)
\
#define free_disarm(ptr) \
({
\
({ \
free(ptr);
\
free(ptr); \
move_ptr(ptr)
; \
ptr = NULL
; \
})
})
static
inline
void
free_disarm_function
(
void
*
ptr
)
static
inline
void
free_disarm_function
(
void
*
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