Commit Graph

1 Commits (35362b7bfa08c83d15e6e6e5cb1f39f712ad5511)

Author SHA1 Message Date
Eric Leblond 1fbaebad63 coccinelle: add test on realloc
If we use SCRealloc like:
 x = SCRealloc(x, ...)
then in case of failure we are loosing the original pointer value
and the memory is lost and can not be free.

This test just check for this construction and output an error if
it finds it.
11 years ago