Blame SOURCES/radvd_add_ra_memleak.patch

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