Fix a potential memory leak in get_conf_int

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>