mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 14:25:15 +00:00
supress cppcheck memory leak false positive
This commit is contained in:
@@ -66,6 +66,7 @@ rcstr_alloc(size_t len)
|
||||
|
||||
rcs->refcnt = 1;
|
||||
rcs->str[0] = '\0';
|
||||
/* cppcheck-suppress memleak */
|
||||
debug_return_ptr(rcs->str);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user