Fix memory leaks in ignored problem helpers

Related to rhbz#909968 and rhbz#905412

Signed-off-by: Jakub Filak <jfilak@redhat.com>