diff options
author | Andreas Schneider <asn@samba.org> | 2020-06-09 17:00:24 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2020-06-09 16:02:59 +0000 |
commit | 9e922b75d0a28a4c882863150af73161f019fdb3 (patch) | |
tree | db842600b99cfd5025df75177ed32c1a0a4e1baf /lib/talloc | |
parent | b458f8fbb7febf3584fa648128b4e1dc764059f7 (diff) | |
download | samba-9e922b75d0a28a4c882863150af73161f019fdb3.tar.gz |
talloc: Mark ptr of talloc_unlink() not as a tainted scalar
This should address a lot of issues reported by Coverity.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'lib/talloc')
-rw-r--r-- | lib/talloc/talloc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/talloc/talloc.c b/lib/talloc/talloc.c index 518ffbdbfdf..e476f3e2d05 100644 --- a/lib/talloc/talloc.c +++ b/lib/talloc/talloc.c @@ -1438,6 +1438,8 @@ static inline int talloc_unreference(const void *context, const void *ptr) remove a specific parent context from a pointer. This is a more controlled variant of talloc_free() */ + +/* coverity[ -tainted_data_sink : arg-1 ] */ _PUBLIC_ int talloc_unlink(const void *context, void *ptr) { struct talloc_chunk *tc_p, *new_p, *tc_c; |