From 52e8d052d1e678aeda862b9539a44234f2779aba Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Wed, 2 Oct 2013 08:25:03 +0000 Subject: [PATCH] misc: fix some coding errors found by Coverity. --- neercs/old/screen_list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neercs/old/screen_list.c b/neercs/old/screen_list.c index e961694..6130a36 100644 --- a/neercs/old/screen_list.c +++ b/neercs/old/screen_list.c @@ -135,8 +135,8 @@ struct screen_list *create_screen_list(void) { fprintf(stderr, "Can't allocate memory at %s:%d\n", __FUNCTION__, __LINE__); - free(screen_list); free(screen_list->screen); + free(screen_list); return NULL; } screen_list->recurrent_list->count = 0;