[bus] Make callers of bus__add_child responsible...
authorShao Miller <Shao.Miller@yrdsb.edu.on.ca>
Thu, 9 Dec 2010 21:58:40 +0000 (16:58 -0500)
committerShao Miller <Shao.Miller@yrdsb.edu.on.ca>
Thu, 9 Dec 2010 21:58:40 +0000 (16:58 -0500)
commit327dbc4764e1e4c1bd92564d55b3155bfaa309db
tree0e6e3492d3b5543116c857bcef7afbb6882e4a1f
parent94b28395aa05b074c2ac24097c021a302706be39
[bus] Make callers of bus__add_child responsible...

...for freeing their device if bus__add_child() fails.
This is better than bus__add_child() freeing it, for the sake
of consistency in the code.  I accidentally re-freed not
once, but twice, while trying some things out.
src/winvblock/bus/bus.c
src/winvblock/filedisk/filedisk.c
src/winvblock/filedisk/grub4dos.c
src/winvblock/ramdisk/grub4dos.c
src/winvblock/ramdisk/memdisk.c