]> git.tue.mpg.de Git - paraslash.git/commit
btr: Remove btr_free_node().
authorAndre Noll <maan@systemlinux.org>
Mon, 9 Apr 2012 19:57:54 +0000 (21:57 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 8 Jul 2012 17:06:38 +0000 (17:06 +0000)
commit4ac3134c050ba28b57e0ae9686eb1f6d83e6d586
tree49d5d7b032d6b62781413eb42e8625384abe2c0e
parent49ae9b0afbaa8b1ac05c7956f325c4f7a710b59a
btr: Remove btr_free_node().

This has turned out to be source for bugs. Deallocate everything
in btr_remove_node() hence making removing the node and freeing
its resources an atomic operation.

To avoid dangling pointers to freed btrn nodes, the argument of
btr_remove_node() is changed to to struct btr_node **btrnp.
31 files changed:
aacdec_filter.c
alsa_write.c
amp_filter.c
ao_write.c
audioc.c
audiod.c
buffer_tree.c
buffer_tree.h
client.c
client_common.c
compress_filter.c
dccp_recv.c
fecdec_filter.c
file_write.c
filter.c
flacdec_filter.c
grab_client.c
http_recv.c
interactive.c
mp3dec_filter.c
oggdec_filter.c
oss_write.c
osx_write.c
recv.c
spxdec_filter.c
stdin.c
stdout.c
udp_recv.c
wav_filter.c
wmadec_filter.c
write.c