This is not actually a leak since the application will terminate immediately if
a restrict key cannot be generated.

 
Seems like this will silence static analyzer and help to find real problems in reduced warning/errors list.
 
--
Roman Khapov