This was fixed in 5a32d2d017
. Add a regression test
with array arguments.
This commit is contained in:
parent
5bf53cc2b4
commit
af170c8e3f
|
@ -683,6 +683,13 @@ private:
|
|||
" if ((char *)data != stack) free (data);\n"
|
||||
"}\n");
|
||||
ASSERT_EQUALS("", errout.str());
|
||||
|
||||
// #8923
|
||||
check("void f(char **args1, char *args2[]) {\n"
|
||||
" free((char **)args1);\n"
|
||||
" free((char **)args2);\n"
|
||||
"}");
|
||||
ASSERT_EQUALS("", errout.str());
|
||||
}
|
||||
|
||||
void testinvaliddealloc_C() {
|
||||
|
|
Loading…
Reference in New Issue