From fb419ba06607503ba3776c7f2b194591ea1407ad Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 14 Feb 2017 14:38:31 -0700 Subject: [PATCH] supress cppcheck memory leak false positive --- plugins/sudoers/rcstr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/sudoers/rcstr.c b/plugins/sudoers/rcstr.c index e3f461bfa..0f8e1a1ad 100644 --- a/plugins/sudoers/rcstr.c +++ b/plugins/sudoers/rcstr.c @@ -66,6 +66,7 @@ rcstr_alloc(size_t len) rcs->refcnt = 1; rcs->str[0] = '\0'; + /* cppcheck-suppress memleak */ debug_return_ptr(rcs->str); } -- 2.40.0