]> git.stg.codes - stg.git/blobdiff - projects/rlm_stg/rlm_stg.c
Free reply pair list before filling.
[stg.git] / 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);
     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);
     count += toVPS(result.reply, &request->reply->vps);
 
     deletePairs(result.modify);