Skip to content

Commit

Permalink
utils/kamcmd: fix memory leak
Browse files Browse the repository at this point in the history
fixes kamailio#3478

(cherry picked from commit badc81c)
(cherry picked from commit 402bab6)
  • Loading branch information
linuxmaniac committed Jun 27, 2023
1 parent ada8f75 commit edd4744
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/kamcmd/kamcmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1403,6 +1403,8 @@ void free_cfg_grp_lst()
while(grp){
last=grp;
grp=grp->next;
if(last->var_names)
free(last->var_names);
free(last);
}
cfg_grp_lst=0;
Expand Down

0 comments on commit edd4744

Please sign in to comment.