Remove redundant new/delete

This commit is contained in:
John Hood
2017-05-11 10:05:44 -04:00
parent a3b05e69b6
commit 33afb3abc1
+1 -2
View File
@@ -58,11 +58,10 @@ bool verbose = false;
static std::string random_payload( void ) {
const size_t len = prng.uint32() % MESSAGE_SIZE_MAX;
char *buf = new char[len];
char buf[ MESSAGE_SIZE_MAX ];
prng.fill( buf, len );
std::string payload( buf, len );
delete [] buf;
return payload;
}