Queue creation and release fails during hipFree causing seg fault if the null queue was not created until then and there is no device memory left. Change-Id: I118b86b58e777dac5415bc9ba0c4e23c986efa7d