Skip to content

Commit

Permalink
Fixed potential memory leak in cases where system has env ZITI_DNS_IP…
Browse files Browse the repository at this point in the history
…_RANGE set
  • Loading branch information
r-caamano committed Apr 26, 2024
1 parent 778074e commit b21c36c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

---
# [0.5.16] - 2024-04-26

-- Fixed memory leak in zfw.c interface_map() if ZITI_DNS_IP_RANGE is set.

###
# [0.5.15] - 2024-04-12

###
Expand Down
3 changes: 2 additions & 1 deletion src/zfw.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ char *tc_interface;
char *log_file_name;
char *object_file;
char *direction_string;
const char *argp_program_version = "0.5.15";
const char *argp_program_version = "0.5.16";
struct ring_buffer *ring_buffer;

__u8 if_list[MAX_IF_LIST_ENTRIES];
Expand Down Expand Up @@ -1658,6 +1658,7 @@ bool interface_map()
}
}
}
free(tmptun);
}
/*
* traverse linked list of interfaces and for each non-loopback interface
Expand Down

0 comments on commit b21c36c

Please sign in to comment.