Diff

Differences From Artifact [7148f823cb]:

To Artifact [a0dcafd0c9]:


   424    424           }
   425    425   
   426    426   	fsuid = appfs_get_fsuid();
   427    427   
   428    428   	if (fsuid == last_fsuid && last_homedir_obj != NULL) {
   429    429   		homedir_obj = last_homedir_obj;
   430    430   	} else {
   431         -		if (last_homedir_obj != NULL) {
   432         -			Tcl_DecrRefCount(last_homedir_obj);
   433         -		}
   434         -
   435    431   		homedir = appfs_get_homedir(appfs_get_fsuid());
   436    432   
   437    433   		if (homedir == NULL) {
   438    434   			return(TCL_ERROR);
   439    435   		}
   440    436   
   441    437   		homedir_obj = Tcl_NewStringObj(homedir, -1);
   442    438   
   443    439   		free(homedir);
          440  +
          441  +		if (last_homedir_obj != NULL) {
          442  +			Tcl_DecrRefCount(last_homedir_obj);
          443  +		}
   444    444   
   445    445   		last_homedir_obj = homedir_obj;
   446    446   		last_fsuid = fsuid;
   447    447   
   448    448   		Tcl_IncrRefCount(last_homedir_obj);
   449    449   	}
   450    450