Fix double free in log filter (with incorrect config) MP-589