summaryrefslogtreecommitdiff
path: root/protocols/Tox
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Tox')
-rw-r--r--protocols/Tox/src/tox_profile.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/protocols/Tox/src/tox_profile.cpp b/protocols/Tox/src/tox_profile.cpp
index 2a22f24f90..f17e3f33d1 100644
--- a/protocols/Tox/src/tox_profile.cpp
+++ b/protocols/Tox/src/tox_profile.cpp
@@ -115,6 +115,7 @@ void CToxProto::SaveToxProfile()
if (profile == NULL)
{
debugLogA(__FUNCTION__": failed to open tox profile");
+ mir_free(data);
return;
}