diff options
author | Sander Vrijders <[email protected]> | 2018-05-04 11:53:15 +0200 |
---|---|---|
committer | Dimitri Staessens <[email protected]> | 2018-05-04 12:11:17 +0200 |
commit | 7d6fabc5bfb227ed76376a68a820aa243b0d7f53 (patch) | |
tree | dc0cf9ba54bbbf1d482fd8fc5cefd40612b5b0ea /src/lib/tests/hashtable_test.c | |
parent | e92174e887bac9b18a6b5d18e04adaefd3bd4bc1 (diff) | |
download | ouroboros-7d6fabc5bfb227ed76376a68a820aa243b0d7f53.tar.gz ouroboros-7d6fabc5bfb227ed76376a68a820aa243b0d7f53.zip |
ipcpd: Fix bad memory handling in LFA policy
The Loop-Free Alternates policy had bad memory management in two
places. In the calculation of the LFAs a table was freed in the first
iteration of a loop, whereas it was still needed in the other
iterations. It is now freed outside of the loop. In the alternate PFF
the address structs were not freed upon shutdown, this has been added
as well. It also fixes some bad initialization in the LFA calculation
function.
Signed-off-by: Sander Vrijders <[email protected]>
Signed-off-by: Dimitri Staessens <[email protected]>
Diffstat (limited to 'src/lib/tests/hashtable_test.c')
0 files changed, 0 insertions, 0 deletions