]> git.tuebingen.mpg.de Git - paraslash.git/commit
Fix memory leak in btr_splice_out_node().
authorAndre Noll <maan@systemlinux.org>
Tue, 31 Dec 2013 13:29:16 +0000 (13:29 +0000)
committerAndre Noll <maan@systemlinux.org>
Sat, 3 May 2014 12:08:00 +0000 (14:08 +0200)
commit7df87a748fae6a9f20d337d79ec83978856f0c48
treeb373c590344570e5ebeb9e94c47052a02b04fa8c
parenta731a7c6e78fb137268b42062d9fb08b4e49a2c8
Fix memory leak in btr_splice_out_node().

Commit 072391fc (Improve btr_splice_out_node(), 2013-03) modified this
function to take a pointer to a buffer tree node pointer so that the
node pointer can be invalidated after it is spliced out. However, this
also means the caller can no longer free its resources. Hence we must
free the btrn in btr_splice_out_node() in order to avoid memory leaks.
buffer_tree.c