commit | 47f61b0ee9a8ed85e935941d2dd7a34e4e7a42d2 | [log] [tgz] |
---|---|---|
author | Nicolas Iooss <nicolas.iooss@m4x.org> | Mon Dec 26 22:18:31 2016 +0100 |
committer | James Carter <jwcart2@tycho.nsa.gov> | Fri Jan 06 13:33:15 2017 -0500 |
tree | 53b4c182047a547d9ee9540aa4c126dc6e1b8087 | |
parent | 6ef96094d3a29679478c7ad512720d22f760992e [diff] |
checkpolicy: do not leak queue elements in queue_destroy() Elements which are inserted into a queue_t object are either NULL (from insert_separator()) or strings allocated with malloc() in insert_id(). They would be freed if there are still present in the queue when it is destroyed. Otherwise the memory allocated for these elements would be leaked. Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>