Commit 78449f38 authored by Per Cederqvist's avatar Per Cederqvist

check_kill_flag(): Don't call sfree(kill_list) unless kill_list is non-NULL.

parent b3507a72
Sat Apr 11 22:00:27 1992 Per Cederqvist (ceder@robin)
* connections.c (check_kill_flag): Small optimization: don't call
sfree when the kill_list is empty.
Fri Apr 10 13:46:41 1992 Per Cederqvist (ceder@lysator)
* Since lyskomd spended 25% of the time in check_kill_flag it was
......
/*
* $Id: connections.c,v 0.15 1992/04/10 11:56:30 ceder Exp $
* $Id: connections.c,v 0.16 1992/04/11 20:02:20 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -30,7 +30,7 @@
* Created by Willf|r 31/3-90. Mostly written by ceder.
*/
static char *rcsid = "$Id: connections.c,v 0.15 1992/04/10 11:56:30 ceder Exp $";
static char *rcsid = "$Id: connections.c,v 0.16 1992/04/11 20:02:20 ceder Exp $";
#include <errno.h>
......@@ -686,8 +686,11 @@ check_kill_flg(void)
}
}
sfree (kill_list);
kill_list = NULL;
if (kill_list != NULL)
{
sfree (kill_list);
kill_list = NULL;
}
}
static void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment