Skip to content

Commit c94b7ca

Browse files
committed
minor fix cleanup code
1 parent 521f03c commit c94b7ca

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ Legend:
44
- Bug fixed
55
! Known issue / missing feature
66

7+
0.6.6 - 2023-9-18
8+
- Minor fix in cleanup code.
9+
710
0.6.5 - 2022-07-30
811
- bug count of time
912
- call to resolver_init being done unnecessarily in some cases

src/connection.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,5 +298,6 @@ conn_free ( void *data )
298298
void
299299
connection_free ( void )
300300
{
301-
hashtable_min_detroy ( ht_connections, conn_free );
301+
if ( ht_connections )
302+
hashtable_min_detroy ( ht_connections, conn_free );
302303
}

0 commit comments

Comments
 (0)