1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

Use free rather than delete for malloc'd memory

This commit is contained in:
Perttu Ahola 2012-01-02 21:42:33 +02:00
parent 6286c555d4
commit 3e6f824e6c
2 changed files with 2 additions and 2 deletions

View file

@ -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);