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