1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

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>
This commit is contained in:
Andreas Schneider 2020-06-09 17:00:24 +02:00 committed by Andreas Schneider
parent b458f8fbb7
commit 9e922b75d0

View File

@ -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;