From 21f0cae92fbd34397f61f00502d974c102af3e58 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Thu, 8 May 2014 10:21:08 +0000 Subject: style: set pointer to NULL after free Signed-off-by: Hiltjo Posthuma --- sfeed_frames.c | 1 + sfeed_html.c | 1 + 2 files changed, 2 insertions(+) diff --git a/sfeed_frames.c b/sfeed_frames.c index 61730e2..679437b 100644 --- a/sfeed_frames.c +++ b/sfeed_frames.c @@ -39,6 +39,7 @@ cleanup(void) { if(fpcontent) fclose(fpcontent); free(line); /* free line */ + line = NULL; feedsfree(feeds); /* free feeds linked-list */ } diff --git a/sfeed_html.c b/sfeed_html.c index 45d160b..4530005 100644 --- a/sfeed_html.c +++ b/sfeed_html.c @@ -14,6 +14,7 @@ static char *line = NULL; static void cleanup(void) { free(line); /* free line */ + line = NULL; feedsfree(feeds); /* free feeds linked-list */ } -- cgit v1.2.3