diff --git a/src/cmd/isulad-shim/process.c b/src/cmd/isulad-shim/process.c index da9bdb64e1d7bca984d469690695c142ff8f08ac..141003e51f909c413486f51cb4d711439d87fe1d 100644 --- a/src/cmd/isulad-shim/process.c +++ b/src/cmd/isulad-shim/process.c @@ -572,6 +572,7 @@ static int console_init(process_t *p) pthread_attr_init(&attr); pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); ret = pthread_create(&tid_accept, &attr, task_console_accept, ac); + pthread_attr_destroy(&attr); if (ret != SHIM_OK) { goto failure; } diff --git a/update-version.bash b/update-version.bash index 78158a198f3a7c348d67e51821aea815ec1301ac..9afaf857fa37d613faca190adf095991bafc7cf9 100755 --- a/update-version.bash +++ b/update-version.bash @@ -1,3 +1,7 @@ +#!/bin/bash +# usage +# ./update-version.bash + ####################################################################### ##- @Copyright (C) Huawei Technologies., Ltd. 2019. All rights reserved. # - iSulad licensed under the Mulan PSL v2. @@ -12,9 +16,6 @@ ##- @Author: wujing ##- @Create: 2019-04-25 ####################################################################### -#!/bin/bash -# usage -# ./update-version.bash function update_release_notes() {