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

Hello,

This patch fixes ticket #5201, an internal error when looking for memory leaks in (valid) C input that uses the (variable).attribute notation. Thanks to consider merging.

Best regards,
  Simon