{
mc_service_request *req = (mc_service_request *)data;
if (req != NULL) {
-// MC_SAFE_FREE(req->creds.uid);
-// MC_SAFE_FREE(req->creds.smack);
MC_SAFE_FREE(req->req_msg);
MC_SAFE_FREE(req);
}
}
if (request_msg->msg_type == MC_MSG_DB_UPDATE) {
-/* if (req->permission != 2) {
- mc_error("permission is denied![%d]", res);
- send_msg = MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED;
- goto ERROR;
- }*/
char *sql_query = NULL;
sql_query = strndup(request_msg->msg, request_msg->msg_size);
if (sql_query != NULL) {
if (close(req->client_sock) < 0)
mc_stderror("close failed");
-// MC_SAFE_FREE(req->creds.uid);
-// MC_SAFE_FREE(req->creds.smack);
MC_SAFE_FREE(req->req_msg);
MC_SAFE_FREE(req);