host/mobile: Adding memory leak debugging
commit0be0680ab5198dfd2170e5c894256b8c329676a8
authorAndreas Eversberg <jolly@eversberg.eu>
Sat, 5 Nov 2011 09:05:40 +0000 (5 10:05 +0100)
committerSylvain Munaut <tnt@246tNt.com>
Sun, 13 Nov 2011 19:25:19 +0000 (13 20:25 +0100)
treed2a9282c8bf4b6937d034c448a71bad1ea824456
parent321e3ae2fb16a364e8bde96ddf47f5cff661d3df
host/mobile: Adding memory leak debugging

When mobile exits, a list of allocated memory chunks are dumped to
stderr. This helps to find talloc_free / msgb_free leaks.

During process, a SIGUSR1 or SIGUSR2 can be used to dump currently
allocated memory chunks.

Written-by: Andreas Eversberg <jolly@eversberg.eu>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
src/host/layer23/src/mobile/main.c