Ticket #5201: Get rid of internal error when checking valid C input for memory leaks.
Merge pull request #208 from simartin/ticket_5201

Ticket #5201: Get rid of internal error when checking valid C input for leaks