This commit is contained in:
Manolis Surligas 2016-05-09 20:57:09 +03:00
commit 3d67b098ef
1 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ namespace gr
}
/* All good until now. Allocate buffer memory and proceed */
buf = new uint8_t (d_mtu);
buf = new uint8_t[d_mtu];
while (d_running) {
sock = accept (listen_sock, &client_addr, &client_addr_len);
@ -191,7 +191,7 @@ namespace gr
close (sock);
}
close (listen_sock);
delete buf;
delete [] buf;
exit (EXIT_SUCCESS);
}