fix two different severe memory leaks, as suggested by  Hartmut Prochaska <hartmut.prochaska@gmail.com> in email [opencog-dev] small patches
fix two different severe memory leaks, as suggested by 
Hartmut Prochaska <hartmut.prochaska@gmail.com> in email
[opencog-dev] small patches

rohit12/atomspace,kim135797531/opencog,ceefour/opencog,sanuj/opencog,cosmoharrigan/opencog,AmeBel/atomspace,cosmoharrigan/atomspace,ruiting/opencog,TheNameIsNigel/opencog,andre-senna/opencog,AmeBel/atomspace,gavrieltal/opencog,ruiting/opencog,UIKit0/atomspace,iAMr00t/opencog,yantrabuddhi/atomspace,AmeBel/opencog,inflector/opencog,gavrieltal/opencog,anitzkin/opencog,shujingke/opencog,ArvinPan/opencog,ArvinPan/opencog,roselleebarle04/opencog,jlegendary/opencog,Allend575/opencog,jswiergo/atomspace,AmeBel/atomspace,rodsol/atomspace,zhaozengguang/opencog,gavrieltal/opencog,AmeBel/opencog,shujingke/opencog,williampma/opencog,Allend575/opencog,cosmoharrigan/atomspace,sanuj/opencog,misgeatgit/opencog,ruiting/opencog,cosmoharrigan/opencog,rohit12/atomspace,virneo/opencog,sumitsourabh/opencog,ArvinPan/opencog,rTreutlein/atomspace,sumitsourabh/opencog,williampma/opencog,yantrabuddhi/atomspace,zhaozengguang/opencog,inflector/atomspace,jswiergo/atomspace,iAMr00t/opencog,roselleebarle04/opencog,andre-senna/opencog,Selameab/opencog,Allend575/opencog,sanuj/opencog,kinoc/opencog,prateeksaxena2809/opencog,Tiggels/opencog,AmeBel/atomspace,prateeksaxena2809/opencog,iAMr00t/opencog,eddiemonroe/atomspace,rTreutlein/atomspace,jswiergo/atomspace,inflector/opencog,AmeBel/opencog,rodsol/atomspace,ceefour/opencog,inflector/opencog,printedheart/atomspace,andre-senna/opencog,UIKit0/atomspace,williampma/opencog,yantrabuddhi/opencog,Selameab/atomspace,jlegendary/opencog,rohit12/opencog,roselleebarle04/opencog,andre-senna/opencog,Tiggels/opencog,rodsol/opencog,shujingke/opencog,ArvinPan/opencog,gavrieltal/opencog,rohit12/atomspace,ceefour/atomspace,inflector/opencog,williampma/atomspace,misgeatgit/opencog,rTreutlein/atomspace,ceefour/atomspace,AmeBel/opencog,tim777z/opencog,gaapt/opencog,misgeatgit/atomspace,iAMr00t/opencog,misgeatgit/atomspace,yantrabuddhi/opencog,iAMr00t/opencog,gaapt/opencog,andre-senna/opencog,virneo/atomspace,Tiggels/opencog,inflector/atomspace,andre-senna/opencog,yantrabuddhi/atomspace,Allend575/opencog,virneo/opencog,rodsol/atomspace,AmeBel/atomspace,cosmoharrigan/opencog,ArvinPan/atomspace,cosmoharrigan/opencog,misgeatgit/opencog,jlegendary/opencog,MarcosPividori/atomspace,ruiting/opencog,prateeksaxena2809/opencog,UIKit0/atomspace,rodsol/atomspace,ArvinPan/opencog,TheNameIsNigel/opencog,misgeatgit/opencog,inflector/atomspace,prateeksaxena2809/opencog,andre-senna/opencog,zhaozengguang/opencog,rohit12/opencog,anitzkin/opencog,kinoc/opencog,roselleebarle04/opencog,Selameab/atomspace,eddiemonroe/opencog,gaapt/opencog,eddiemonroe/atomspace,rohit12/opencog,virneo/atomspace,ceefour/opencog,rodsol/opencog,jlegendary/opencog,sumitsourabh/opencog,tim777z/opencog,kim135797531/opencog,printedheart/opencog,anitzkin/opencog,yantrabuddhi/opencog,kim135797531/opencog,gaapt/opencog,printedheart/opencog,yantrabuddhi/opencog,shujingke/opencog,printedheart/opencog,jlegendary/opencog,misgeatgit/atomspace,ceefour/atomspace,Selameab/atomspace,cosmoharrigan/atomspace,yantrabuddhi/opencog,roselleebarle04/opencog,virneo/opencog,williampma/opencog,AmeBel/opencog,printedheart/atomspace,rodsol/opencog,jlegendary/opencog,eddiemonroe/opencog,eddiemonroe/opencog,ArvinPan/atomspace,eddiemonroe/atomspace,Tiggels/opencog,Selameab/opencog,TheNameIsNigel/opencog,printedheart/opencog,inflector/opencog,ceefour/atomspace,eddiemonroe/opencog,sumitsourabh/opencog,rohit12/atomspace,misgeatgit/opencog,ArvinPan/atomspace,inflector/opencog,ceefour/opencog,sanuj/opencog,gaapt/opencog,tim777z/opencog,TheNameIsNigel/opencog,rodsol/opencog,williampma/atomspace,kim135797531/opencog,anitzkin/opencog,virneo/atomspace,tim777z/opencog,rohit12/opencog,MarcosPividori/atomspace,prateeksaxena2809/opencog,kim135797531/opencog,jlegendary/opencog,yantrabuddhi/atomspace,shujingke/opencog,ruiting/opencog,rTreutlein/atomspace,anitzkin/opencog,printedheart/opencog,roselleebarle04/opencog,kim135797531/opencog,anitzkin/opencog,ArvinPan/opencog,Allend575/opencog,eddiemonroe/atomspace,MarcosPividori/atomspace,ceefour/opencog,prateeksaxena2809/opencog,misgeatgit/opencog,ArvinPan/atomspace,Tiggels/opencog,sumitsourabh/opencog,eddiemonroe/opencog,cosmoharrigan/opencog,gavrieltal/opencog,misgeatgit/opencog,williampma/opencog,yantrabuddhi/opencog,gavrieltal/opencog,eddiemonroe/opencog,rTreutlein/atomspace,sumitsourabh/opencog,sanuj/opencog,rodsol/opencog,ruiting/opencog,inflector/atomspace,inflector/atomspace,zhaozengguang/opencog,eddiemonroe/opencog,printedheart/atomspace,misgeatgit/opencog,rohit12/opencog,Allend575/opencog,cosmoharrigan/opencog,ceefour/opencog,UIKit0/atomspace,virneo/opencog,roselleebarle04/opencog,virneo/atomspace,sanuj/opencog,jswiergo/atomspace,yantrabuddhi/atomspace,Selameab/opencog,misgeatgit/atomspace,prateeksaxena2809/opencog,kinoc/opencog,inflector/opencog,Selameab/opencog,kinoc/opencog,AmeBel/opencog,shujingke/opencog,williampma/opencog,iAMr00t/opencog,gavrieltal/opencog,rohit12/opencog,shujingke/opencog,gaapt/opencog,Selameab/atomspace,printedheart/atomspace,yantrabuddhi/opencog,TheNameIsNigel/opencog,misgeatgit/atomspace,Selameab/opencog,TheNameIsNigel/opencog,tim777z/opencog,Allend575/opencog,kinoc/opencog,williampma/atomspace,tim777z/opencog,virneo/opencog,anitzkin/opencog,inflector/opencog,MarcosPividori/atomspace,zhaozengguang/opencog,cosmoharrigan/atomspace,virneo/opencog,ruiting/opencog,ceefour/opencog,sumitsourabh/opencog,AmeBel/opencog,misgeatgit/opencog,williampma/atomspace,eddiemonroe/atomspace,zhaozengguang/opencog,Tiggels/opencog,kinoc/opencog,rodsol/opencog,kinoc/opencog,gaapt/opencog,virneo/opencog,Selameab/opencog,printedheart/opencog,kim135797531/opencog