mirror of
https://github.com/Tha14/toxic.git
synced 2025-04-18 16:02:57 +02:00
Fixed a calloc getting freed before being used
This commit is contained in:
parent
19efe3727a
commit
4ef0b68602
1
chat.c
1
chat.c
@ -256,6 +256,5 @@ ToxWindow new_chat(int friendnum) {
|
|||||||
x->friendnum = friendnum;
|
x->friendnum = friendnum;
|
||||||
|
|
||||||
ret.x = (void*) x;
|
ret.x = (void*) x;
|
||||||
free(x);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user