Merge d5f44b400f361798a86a01cc06ec4ede75e7bd14 on remote branch

Change-Id: Ie30ec4d17987a85a523ecdf8ddc66e8fc01de942
diff --git a/rmnetctl/src/librmnetctl.c b/rmnetctl/src/librmnetctl.c
index a5147e2..95f0510 100644
--- a/rmnetctl/src/librmnetctl.c
+++ b/rmnetctl/src/librmnetctl.c
@@ -135,7 +135,6 @@
 
 	response_buf = (uint8_t *)malloc(MAX_BUF_SIZE * sizeof(uint8_t));
 	if (!response_buf) {
-		free(request_buf);
 		return_code = RMNETCTL_API_ERR_RESPONSE_NULL;
 		break;
 	}
@@ -165,8 +164,6 @@
 			(struct sockaddr*)saddr_ptr,
 			sizeof(struct sockaddr_nl)) < 0) {
 		return_code = RMNETCTL_API_ERR_MESSAGE_SEND;
-		free(request_buf);
-		free(response_buf);
 		break;
 	}
 
@@ -179,8 +176,6 @@
 			&addrlen);
 	if (bytes_read < 0) {
 		return_code = RMNETCTL_API_ERR_MESSAGE_RECEIVE;
-		free(request_buf);
-		free(response_buf);
 		break;
 	}
 
@@ -188,15 +183,11 @@
 	sizeof(struct rmnet_nl_msg_s));
 	if (sizeof(*response) < sizeof(struct rmnet_nl_msg_s)) {
 		return_code = RMNETCTL_API_ERR_RESPONSE_NULL;
-		free(request_buf);
-		free(response_buf);
 		break;
 	}
 
 	if (request->message_type != response->message_type) {
 		return_code = RMNETCTL_API_ERR_MESSAGE_TYPE;
-		free(request_buf);
-		free(response_buf);
 		break;
 	}
 	return_code = RMNETCTL_SUCCESS;