fix double-destroy seg
This commit is contained in:
parent
d04016dd89
commit
63deed9fc9
|
@ -196,8 +196,10 @@ void
|
||||||
sofia_su_uniqueid_destructor(void)
|
sofia_su_uniqueid_destructor(void)
|
||||||
{
|
{
|
||||||
#if HAVE_DEV_URANDOM
|
#if HAVE_DEV_URANDOM
|
||||||
if (urandom)
|
if (urandom) {
|
||||||
fclose(urandom);
|
fclose(urandom);
|
||||||
|
urandom=NULL;
|
||||||
|
}
|
||||||
#endif /* HAVE_DEV_URANDOM */
|
#endif /* HAVE_DEV_URANDOM */
|
||||||
|
|
||||||
#if SU_HAVE_PTHREADS
|
#if SU_HAVE_PTHREADS
|
||||||
|
|
Loading…
Reference in New Issue