[Feature][ZXW-452]merge P54U02 version

Only Configure: No
Affected branch: master
Affected module: unknow
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: Yes
Doc Update: No

Change-Id: I17e6795ab66e2b9d1cbbfec4b7c0028d666e177d
diff --git a/ap/app/zte_amt/amt.c b/ap/app/zte_amt/amt.c
index 0557c0f..57f39b1 100755
--- a/ap/app/zte_amt/amt.c
+++ b/ap/app/zte_amt/amt.c
@@ -1892,6 +1892,7 @@
 	if(ret != CPNV_OK)

 	{

 		AmtPrintf(AMT_ERROR "%s: cpnv_ChangeFsPartitionAttr RW nvrofs failed!\n", __FUNCTION__);

+		free(receive_buffer);

 		return -1;

 	}

 	else

@@ -1905,6 +1906,7 @@
     if (pthread_create(&load_wifi_firmware_thread, NULL, LoadWifiFirmwareThread, NULL) != 0)

     {

         AmtPrintf(AMT_ERROR "Failed to create load wifi firmware thread!\n");

+		free(receive_buffer);

         return -1;

     }