mirror of
https://github.com/openharmony/developtools_syscap_codec.git
synced 2026-08-27 10:21:25 -04:00
修改interfaces/inner_api/syscap_interface.c文件,内存变量outputArray在内存释放后赋值空值
247行内存变量outputArray在内存释放后赋值空值 Signed-off-by: tongkai0808fh <tongkai5@huawei.com>
This commit is contained in:
@@ -246,6 +246,7 @@ bool DecodePrivateSyscap(char *input, char (**output)[SINGLE_SYSCAP_LEN], int *o
|
||||
*bufferPos = '\0';
|
||||
if (sprintf_s(*outputArray, SINGLE_SYSCAP_LEN, "SystemCapability.%s", buffer) == -1) {
|
||||
free(outputArray);
|
||||
outputArray = NULL;
|
||||
return false;
|
||||
}
|
||||
bufferPos = buffer;
|
||||
|
||||
Reference in New Issue
Block a user