Blame SOURCES/radvd_add_ra_memleak.patch

cfb3cd
From 5ad279f48c0f3d94573e3f3c887f86cd10476c2d Mon Sep 17 00:00:00 2001
cfb3cd
From: David Hallas <david@davidhallas.dk>
cfb3cd
Date: Wed, 4 Apr 2018 06:36:12 +0200
cfb3cd
Subject: [PATCH] Fixes memory leak in add_ra_options_dnssl
cfb3cd
cfb3cd
The add_ra_options_dnssl function failed to free memory before
cfb3cd
returning.
cfb3cd
---
cfb3cd
 send.c | 2 +-
cfb3cd
 1 file changed, 1 insertion(+), 1 deletion(-)
cfb3cd
cfb3cd
diff --git a/send.c b/send.c
cfb3cd
index 0a4951a..4b83d57 100644
cfb3cd
--- a/send.c
cfb3cd
+++ b/send.c
cfb3cd
@@ -527,8 +527,8 @@ static struct safe_buffer_list *add_ra_options_dnssl(struct safe_buffer_list *sb
cfb3cd
 
cfb3cd
 		dnssl = dnssl->next;
cfb3cd
 	}
cfb3cd
-	return sbl;
cfb3cd
 	safe_buffer_free(serialized_domains);
cfb3cd
+	return sbl;
cfb3cd
 }
cfb3cd
 
cfb3cd
 /*