MCPcopy Create free account
hub / github.com/containers/bubblewrap / steal_pointer

Function steal_pointer

utils.h:186–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184#define cleanup_strv __attribute__((cleanup (cleanup_strvp)))
185
186static inline void *
187steal_pointer (void *pp)
188{
189 void **ptr = (void **) pp;
190 void *ref;
191
192 ref = *ptr;
193 *ptr = NULL;
194
195 return ref;
196}
197
198/* type safety */
199#define steal_pointer(pp) \

Callers 5

load_file_dataFunction · 0.85
readlink_mallocFunction · 0.85
seccomp_program_newFunction · 0.85
parse_mountinfoFunction · 0.85
bind_mountFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected