From 4ef0b686026c6d9c85ff06d84ebc80d6ff99b7fe Mon Sep 17 00:00:00 2001 From: Sean Qureshi Date: Sun, 4 Aug 2013 13:16:08 -0700 Subject: [PATCH] Fixed a calloc getting freed before being used --- chat.c | 1 - 1 file changed, 1 deletion(-) diff --git a/chat.c b/chat.c index 936eb86..ff7a166 100644 --- a/chat.c +++ b/chat.c @@ -256,6 +256,5 @@ ToxWindow new_chat(int friendnum) { x->friendnum = friendnum; ret.x = (void*) x; - free(x); return ret; }