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