diff --git a/gtests/net/packetdrill/run.c b/gtests/net/packetdrill/run.c
index 705adce056999c0dd55b6ba32c3eab1f5ac5a495..b0d8902a97a087b07db027bc6bf4eb1e5ab4d7be 100644
--- a/gtests/net/packetdrill/run.c
+++ b/gtests/net/packetdrill/run.c
@@ -8,7 +8,7 @@
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See thest
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
@@ -68,7 +68,7 @@ static struct state *state = NULL;
 
 void interrupt_handler(int signal_number) {
 	if (state != NULL)
-		state_free(state);
+		close_all_sockets(state);
 	
 	die("interrupted");
 }