]> git.stg.codes - stg.git/commitdiff
Free reply pair list before filling.
authorMaxim Mamontov <faust.madf@gmail.com>
Sat, 5 Sep 2015 12:24:04 +0000 (15:24 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Sat, 5 Sep 2015 12:24:04 +0000 (15:24 +0300)
projects/rlm_stg/rlm_stg.c

index 4030669533f3a9f784f5143edb109a031a7f33b6..1fd94f58a699fbf3b4d30acdb293e70786167b1b 100644 (file)
@@ -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);