config: fix primitive leak