mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Use free rather than delete for malloc'd memory
This commit is contained in:
@@ -4307,7 +4307,7 @@ void Server::PrepareTextures() {
|
||||
unsigned char *digest = sha1.getDigest();
|
||||
std::string digest_string = base64_encode(digest, 20);
|
||||
|
||||
delete(digest);
|
||||
free(digest);
|
||||
|
||||
// Put in list
|
||||
this->m_Textures[tname] = TextureInformation(tpath,digest_string);
|
||||
|
Reference in New Issue
Block a user