diff options
| author | fumingwei <[email protected]> | 2022-02-24 18:37:28 +0800 |
|---|---|---|
| committer | fumingwei <[email protected]> | 2022-02-24 18:37:28 +0800 |
| commit | e15a4679a9511c567eb0591de574e1f63305ae2c (patch) | |
| tree | 978185b06ba9226265112957da990d5b706974c3 /entry | |
| parent | c4d5eefc6017065ce091d143403f1e4e831923e3 (diff) | |
bugfix:TSG-9706:修改kni_destroy函数,删除kni_destroy参数传入v22.02.04
Diffstat (limited to 'entry')
| -rw-r--r-- | entry/src/kni_entry.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/entry/src/kni_entry.cpp b/entry/src/kni_entry.cpp index 2e4a20f..96e86d0 100644 --- a/entry/src/kni_entry.cpp +++ b/entry/src/kni_entry.cpp @@ -2434,11 +2434,11 @@ error_out: } -extern "C" void kni_destroy(struct kni_handle *handle){ - if(handle != NULL){ - FREE(&handle); +extern "C" void kni_destroy(){ + if(g_kni_handle != NULL){ + FREE(&g_kni_handle); } - handle = NULL; + g_kni_handle = NULL; } //eliminate_type: 0:FIFO; 1:LRU @@ -2746,6 +2746,6 @@ extern "C" int kni_init(){ error_out: if(g_kni_handle->arr_last_tfe_dispatch_index) FREE(&(g_kni_handle->arr_last_tfe_dispatch_index)); - kni_destroy(g_kni_handle); + kni_destroy(); exit(0); } |
