Fix memory leak (as observed with CppunitTest_filter_pcx_test)

Change-Id: Ic00653cad7f15f60a8f2613938def25820d7e9ae