]> code.delx.au - pulseaudio/commit
protocol-native: Fix memory leaks introduced in protocol 21 (passthrough support)
authorColin Guthrie <colin@mageia.org>
Mon, 16 May 2011 08:26:32 +0000 (09:26 +0100)
committerColin Guthrie <colin@mageia.org>
Mon, 16 May 2011 08:59:35 +0000 (09:59 +0100)
commit4ff2e858948a8bfc82a012aef24a305fbbf4c6af
treed6c6cf59ad2676777558ef017327b65cbc2f1d79
parente59fc6c6bcfc266e1f9ddaef3ed37d576ffa0b69
protocol-native: Fix memory leaks introduced in protocol 21 (passthrough support)

The proplist used may never be freed if an error condition was found with
CHECK_VALIDITY macro and the formats idxset was never freed regardless
of error state.

This change fixes adds a new maco CHECK_VALIDITY_GOTO() which allows
for cleanup to be done before returning.
src/pulsecore/protocol-native.c