From 5c58431646f05637d801c671a5f55a11903b37a5 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Thu, 6 Oct 2016 17:08:57 +0200 Subject: Coding style - set all pointers to NULL initially and after free --- src/gensvm_queue.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gensvm_queue.c') diff --git a/src/gensvm_queue.c b/src/gensvm_queue.c index bbf57b2..1994a54 100644 --- a/src/gensvm_queue.c +++ b/src/gensvm_queue.c @@ -46,6 +46,7 @@ void gensvm_free_queue(struct GenQueue *q) } free(q->tasks); free(q); + q = NULL; } /** -- cgit v1.2.3