mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed a calloc getting freed before being used
This commit is contained in:
parent
b9f387b3b7
commit
0fad8e3638
|
@ -256,6 +256,5 @@ ToxWindow new_chat(int friendnum) {
|
|||
x->friendnum = friendnum;
|
||||
|
||||
ret.x = (void*) x;
|
||||
free(x);
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user