]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
refclock: remove SOCK socket on exit
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 17 Jul 2019 09:30:11 +0000 (11:30 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 18 Jul 2019 15:29:44 +0000 (17:29 +0200)
refclock_sock.c

index c355a6941f5980bd0c8daf6e6b95b499d3c192f9..86143cf46423eebc672fadddb7c602e400a05d79 100644 (file)
@@ -120,6 +120,7 @@ static void sock_finalise(RCL_Instance instance)
 
   sockfd = (long)RCL_GetDriverData(instance);
   SCH_RemoveFileHandler(sockfd);
+  SCK_RemoveSocket(sockfd);
   SCK_CloseSocket(sockfd);
 }