From 3a9d940a84e3da1e2c453419f25d5f173f182924 Mon Sep 17 00:00:00 2001 From: pfg Date: Mon, 27 Feb 2017 00:10:00 +0000 Subject: [PATCH] librss: simplify some NULL checks. MFC after: 1 week --- lib/librss/librss.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librss/librss.c b/lib/librss/librss.c index 215687e2a331..f8e16c27a4a1 100644 --- a/lib/librss/librss.c +++ b/lib/librss/librss.c @@ -244,10 +244,10 @@ rss_config_get(void) return (rc); error: - if ((rc != NULL) && rc->rss_bucket_map) + if (rc != NULL) { free(rc->rss_bucket_map); - if (rc != NULL) free(rc); + } return (NULL); }