Skip to content

Commit

Permalink
[XrdSec] XrdSecEntity: unlock mutex bofere it gets deleted.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichal committed Oct 3, 2019
1 parent d94794c commit 9ee7860
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/XrdSec/XrdSecEntity.cc
Expand Up @@ -234,5 +234,9 @@ void XrdSecEntity::ResetXtra(bool dodel)

// Delete the extension if so wanted
//
if (dodel) {delete entXtra; entXtra = 0;}
if (dodel)
{
mHelp.UnLock(); // we have to unlock the mutex bofere it's destroyed
delete entXtra; entXtra = 0;
}
}

0 comments on commit 9ee7860

Please sign in to comment.