Follow-up from 4d2f800677
4d2f800677
Closes #6172
This ensures that global data allocations are freed so Valgrind stays happy. This was a problem with at least PolarSSL and mbedTLS.
The list was freed incorrectly since the llist refactor of cbae73e1dd. Added test 1550 to verify that it works and avoid future regressions. Reported-by: Pascal Terjan Fixes #1584 Closes #1585
cbae73e1dd