Fixing control flow error (and a memory leak) found by coverity.  CID 26646
Fixing control flow error (and a memory leak) found by coverity.  CID 26646

sorig/shogun,besser82/shogun,shogun-toolbox/shogun,Saurabh7/shogun,lambday/shogun,shogun-toolbox/shogun,besser82/shogun,besser82/shogun,sorig/shogun,Saurabh7/shogun,lambday/shogun,shogun-toolbox/shogun,besser82/shogun,Saurabh7/shogun,karlnapf/shogun,lisitsyn/shogun,sorig/shogun,sorig/shogun,shogun-toolbox/shogun,geektoni/shogun,lambday/shogun,lisitsyn/shogun,karlnapf/shogun,karlnapf/shogun,Saurabh7/shogun,Saurabh7/shogun,lisitsyn/shogun,besser82/shogun,shogun-toolbox/shogun,lisitsyn/shogun,lambday/shogun,karlnapf/shogun,geektoni/shogun,shogun-toolbox/shogun,karlnapf/shogun,Saurabh7/shogun,lambday/shogun,lisitsyn/shogun,karlnapf/shogun,Saurabh7/shogun,Saurabh7/shogun,lisitsyn/shogun,Saurabh7/shogun,geektoni/shogun,geektoni/shogun,lambday/shogun,geektoni/shogun,geektoni/shogun,sorig/shogun,besser82/shogun,sorig/shogun