mirror of
https://github.com/openharmony/developtools_syscap_codec.git
synced 2026-08-27 02:11:19 -04:00
fix free problem.
Signed-off-by: yudechen <chenyude@huawei.com> Change-Id: Icfa8086d93f0835141877df3edc118d6cb15bb8c
This commit is contained in:
@@ -73,7 +73,7 @@ static char* getSystemCapability()
|
||||
retBool = EncodeOsSyscap(osOutput);
|
||||
if (!retBool) {
|
||||
PRINT_ERR("get encoded os syscap failed.");
|
||||
goto FREE_OSOUTPUT;
|
||||
return nullptr;
|
||||
}
|
||||
retBool = EncodePrivateSyscap(&priOutput, &priOutputLen);
|
||||
if (!retBool) {
|
||||
@@ -146,9 +146,6 @@ FREE_PRICAP_ARRAY:
|
||||
free(priCapArray);
|
||||
FREE_PRIOUTPUT:
|
||||
free(priOutput);
|
||||
FREE_OSOUTPUT:
|
||||
free(osOutput);
|
||||
temp = nullptr;
|
||||
|
||||
return allSyscapBUffer;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user