]> granicus.if.org Git - sudo/commitdiff
supress cppcheck memory leak false positive
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 14 Feb 2017 21:38:31 +0000 (14:38 -0700)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 14 Feb 2017 21:38:31 +0000 (14:38 -0700)
plugins/sudoers/rcstr.c

index e3f461bfa574d48b138cdbf6c25d809f7c786ccc..0f8e1a1ad09a4799e91644156ba4b4a217c01d33 100644 (file)
@@ -66,6 +66,7 @@ rcstr_alloc(size_t len)
 
     rcs->refcnt = 1;
     rcs->str[0] = '\0';
+    /* cppcheck-suppress memleak */
     debug_return_ptr(rcs->str);
 }