summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_avatars.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Tox/src/tox_avatars.cpp')
-rw-r--r--protocols/Tox/src/tox_avatars.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/protocols/Tox/src/tox_avatars.cpp b/protocols/Tox/src/tox_avatars.cpp
index 1d9859f146..eb5bc71abb 100644
--- a/protocols/Tox/src/tox_avatars.cpp
+++ b/protocols/Tox/src/tox_avatars.cpp
@@ -44,6 +44,7 @@ void CToxProto::SetToxAvatar(std::tstring path, bool checkHash)
{
fclose(hFile);
debugLogA(__FUNCTION__": failed to read avatar file");
+ mir_free(data);
return;
}
fclose(hFile);