From: Maxim Mamontov <faust.madf@gmail.com>
Date: Sat, 5 Sep 2015 12:24:04 +0000 (+0300)
Subject: Free reply pair list before filling.
X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/a02618d27fc78002261080ab0c95cef53c39ac14?ds=sidebyside

Free reply pair list before filling.
---

diff --git a/projects/rlm_stg/rlm_stg.c b/projects/rlm_stg/rlm_stg.c
index 40306695..1fd94f58 100644
--- a/projects/rlm_stg/rlm_stg.c
+++ b/projects/rlm_stg/rlm_stg.c
@@ -70,6 +70,7 @@ static size_t toReply(STG_RESULT result, REQUEST* request)
     size_t count = 0;
 
     count += toVPS(result.modify, &request->config_items);
+    pairfree(&request->reply->vps);
     count += toVPS(result.reply, &request->reply->vps);
 
     deletePairs(result.modify);