Skip to content

Commit

Permalink
Remove freeing
Browse files Browse the repository at this point in the history
  • Loading branch information
evanlombardo committed Feb 24, 2024
1 parent 42b44ee commit 23fec10
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions MSB/monitor_msb.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

void monitor_temp_msb(void* arg) {

msb_temp_t* msb = (msb_temp_t*)arg;
msb_temp_t* msb = (msb_temp_t*) arg;

temp_data_t* out = malloc(sizeof(temp_data_t));

Expand All @@ -20,12 +20,11 @@ void monitor_temp_msb(void* arg) {
push_can_queue(status);
osDelay(500);
}
free(out); //Check if this works
}

void monitor_knuckle_msb(void* arg) {

msb_knuckle_t* msb = (msb_knuckle_t*)arg;
msb_knuckle_t* msb = (msb_knuckle_t*) arg;

knuckle_data_t* out = malloc(sizeof(knuckle_data_t));

Expand All @@ -40,12 +39,11 @@ void monitor_knuckle_msb(void* arg) {
push_can_queue(status);
osDelay(500);
}
free(out); //Check if this works
}

void monitor_central_msb(void* arg) {

msb_central_t* msb = (msb_central_t*)arg;
msb_central_t* msb = (msb_central_t*) arg;

central_data_t* out = malloc(sizeof(msb_central_t));

Expand All @@ -68,7 +66,6 @@ void monitor_central_msb(void* arg) {
push_can_queue(status);
osDelay(500);
}
free(out); //Check if this works
}


0 comments on commit 23fec10

Please sign in to comment.