sfeed

simple feed reader - forked from git.codemadness.org/sfeed
git clone git://src.gearsix.net/sfeed
Log | Files | Refs | Atom | README | LICENSE

commit 21f0cae92fbd34397f61f00502d974c102af3e58
parent f6e704a355904997d4333c937968681673586a8b
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Thu,  8 May 2014 10:21:08 +0000

style: set pointer to NULL after free

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>

Diffstat:
Msfeed_frames.c | 1+
Msfeed_html.c | 1+
2 files changed, 2 insertions(+), 0 deletions(-)

diff --git 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 @@ -14,6 +14,7 @@ static char *line = NULL; static void cleanup(void) { free(line); /* free line */ + line = NULL; feedsfree(feeds); /* free feeds linked-list */ }