cppcheck
cppcheck copied to clipboard
fix #11542: FP memleak when using memcpy() with pointer
Work in progress.
Just wanted to check if I'm heading in the right direction and using the internal API correctly.
Is there a way to check if a variable is a pointer to a pointer?
Perhaps adding Variable::getIndirectionLevel() would be useful? Shouldn't be too hard to implement.
var->valueType()->pointer should be 2 in this case.
var->valueType()->pointershould be 2 in this case.
Good to know!