From 0608768be830f03e41d11f31325ec7257f41cc91 Mon Sep 17 00:00:00 2001 From: Rangaiah Date: Mon, 22 Apr 2024 11:19:04 +0530 Subject: [PATCH] fix: TraceContext crash issue fix for add, replace row request --- source/app/libpd.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/source/app/libpd.c b/source/app/libpd.c index 20beb3f2..5b96b04c 100644 --- a/source/app/libpd.c +++ b/source/app/libpd.c @@ -179,7 +179,7 @@ static void parodus_receive() WalPrint("Allocating memory for response headers\n"); res_headers = (headers_t *)malloc(sizeof(headers_t) + sizeof( char * ) * (wrp_msg->u.req.headers->count)); if(res_headers != NULL) { - WalInfo("Memory allocated successfully for response headers\n"); + WalPrint("Memory allocated successfully for response headers\n"); memset(res_headers, 0, (sizeof(headers_t) + sizeof( char * ) * (wrp_msg->u.req.headers->count))); } else { @@ -190,9 +190,7 @@ static void parodus_receive() else { WalPrint("Request headers field is empty so, Memory not allocated for response headers\n"); } - WalInfo("************** processRequest *****************\n"); processRequest((char *)wrp_msg->u.req.payload, wrp_msg->u.req.transaction_uuid, ((char **)(&(res_wrp_msg->u.req.payload))), wrp_msg->u.req.headers, res_headers); - WalInfo("************** processedRequest *****************\n"); if(res_headers != NULL && res_headers->headers[0] != NULL && res_headers->headers[1] != NULL) { if(strlen(res_headers->headers[0]) > 0 && strlen(res_headers->headers[1]) > 0) { res_headers->count = wrp_msg->u.req.headers->count; @@ -210,7 +208,6 @@ static void parodus_receive() WalInfo("Deallocating memory for response headers"); free(res_headers); res_headers = NULL; - WalInfo("Deallocated memory for response headers"); } if(res_wrp_msg->u.req.payload !=NULL) @@ -250,7 +247,6 @@ static void parodus_receive() getCurrentTime(endPtr); WalInfo("Elapsed time : %ld ms\n", timeValDiff(startPtr, endPtr)); wrp_free_struct (res_wrp_msg); - WalInfo("Deallocated memory for res_wrp_msg"); } wrp_free_struct (wrp_msg); }