3e19431:Fix a segfault due to freed shandle