Commit 74f55f6d authored by William Tu's avatar William Tu Committed by Ben Pfaff

rstp: Fix memory leak reported by valgrind.

test case: 1650 RSTP Single bridge, call stacks
    hmap_insert_at (hmap.h:235)
    rstp_port_set_port_number__ (rstp.c:744)
    rstp_add_port (rstp.c:1164)
    new_bridge (test-rstp.c:123)
    test_rstp_main (test-rstp.c:514)
    ovstest_wrapper_test_rstp_main__ (test-rstp.c:714)
    ovs_cmdl_run_command (command-line.c:121)
    main (ovstest.c:132)
fix it by adding hmap_destroy() at rstp_unref()
Signed-off-by: default avatarWilliam Tu <>
Signed-off-by: default avatarDaniele Di Proietto <>
Co-authored-by: default avatarDaniele Di Proietto <>
Acked-by: default avatarDaniele Venturino <>
Signed-off-by: default avatarBen Pfaff <>
parent b23183a7
......@@ -185,6 +185,7 @@ rstp_unref(struct rstp *rstp)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment