Both India, Pakistan to set prisoners free