Browse Source

Merge commit 'a94c7be' into bfgminer

Luke Dashjr 12 years ago
parent
commit
281145606b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      api.c

+ 1 - 0
api.c

@@ -3547,6 +3547,7 @@ static void tidyup(__maybe_unused void *arg)
 		shutdown(*apisock, SHUT_RDWR);
 		CLOSESOCKET(*apisock);
 		*apisock = INVSOCK;
+		free(apisock);
 	}
 
 	if (ipaccess != NULL) {