mirror of
https://github.com/Tha14/toxic.git
synced 2025-06-20 01:16:36 +02:00
Fix memory leak
This commit is contained in:
@ -634,6 +634,8 @@ int store_data(Tox *m, const char *path)
|
||||
free(enc_data);
|
||||
return -1;
|
||||
}
|
||||
|
||||
free(enc_data);
|
||||
} else { /* data will not be encrypted */
|
||||
if (fwrite(data, data_len, 1, fp) != 1) {
|
||||
fprintf(stderr, "Failed to write profile data.\n");
|
||||
|
Reference in New Issue
Block a user