Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > SSR_impls > SSR__MC_shared_impl
changeset 38:ecc95d6a413d
fixed free without allocation
author | Merten Sach <msach@mailbox.tu-berlin.de> |
---|---|
date | Mon, 17 Oct 2011 14:49:00 +0200 |
parents | 412574e3da5e |
children | 5e6d1a0fb80b |
files | SSR_PluginFns.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line diff
1.1 --- a/SSR_PluginFns.c Wed Sep 28 13:33:37 2011 +0200 1.2 +++ b/SSR_PluginFns.c Mon Oct 17 14:49:00 2011 +0200 1.3 @@ -141,7 +141,8 @@ 1.4 handleDissipate( VirtProcr *requestingPr, SSRSemEnv *semEnv ) 1.5 { 1.6 //free any semantic data allocated to the virt procr 1.7 - VMS__free( requestingPr->semanticData ); 1.8 + if(requestingPr->semanticData) 1.9 + VMS__free( requestingPr->semanticData ); 1.10 1.11 //Now, call VMS to free_all AppVP state -- stack and so on 1.12 VMS__dissipate_procr( requestingPr );