Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 19edf96d authored by Girish Mahadevan's avatar Girish Mahadevan Committed by Alok Chauhan
Browse files

msm: msm_bus: Free allocated search node



Free the head of the search node list
after the other elements have been deleted.

Change-Id: Ib151882eba97377e191a44248258f22d55556fcf
Signed-off-by: default avatarGirish Mahadevan <girishm@codeaurora.org>
parent 6212b769
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -229,6 +229,10 @@ static int prune_path(struct list_head *route_list, int dest, int src)
			kfree(del_node);
		}
	}
	search_node = list_entry(route_list->next,
				struct bus_search_type , link);
	kfree(search_node);


exit_prune_path:
	return lnode_hop;