Fix ticket #4914

Hello,

This patch fixes ticket #4914 but taking into account break and continue statements in CheckLeakAutoVar. Thanks to consider pulling.

Simon