coverity: fix memory leak

Change-Id: I17a09015d98a98349571a35492d516724ae2daa9
This commit is contained in:
Markus Mohrhard
2013-03-02 03:34:30 +01:00
parent a935faad11
commit d021bb4dae

View File

@@ -216,6 +216,7 @@ bool needSecurityRestrictions( void )
oslSecurity aSecurity = osl_getCurrentSecurity();
OUString aSystemUser;
sal_Bool bRet = osl_getUserName( aSecurity, &aSystemUser.pData );
osl_freeSecurityHandle(aSecurity);
if( !bRet )
{
// No valid security! -> Secure mode!