From: Todd C. Miller Date: Tue, 14 Feb 2017 21:38:31 +0000 (-0700) Subject: supress cppcheck memory leak false positive X-Git-Tag: SUDO_1_8_20^2~115 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fb419ba06607503ba3776c7f2b194591ea1407ad;p=sudo supress cppcheck memory leak false positive --- 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); }