summaryrefslogtreecommitdiff
path: root/src/network/network_server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/network_server.cpp')
-rw-r--r--src/network/network_server.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_server.cpp b/src/network/network_server.cpp
index 57a530921..16137036e 100644
--- a/src/network/network_server.cpp
+++ b/src/network/network_server.cpp
@@ -1474,7 +1474,7 @@ bool NetworkServer_ReadPackets(NetworkTCPSocketHandler *cs)
} else {
DEBUG(net, 0, "[server] received invalid packet type %d", type);
}
- free(p);
+ delete p;
}
return true;