Skip to content

Commit

Permalink
api: Fix memory leak on show_log_details
Browse files Browse the repository at this point in the history
  • Loading branch information
konglinglong authored Oct 21, 2023
1 parent 6b027cf commit ec48a95
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vpp/api/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ show_log_details (vl_api_registration_t * reg, u32 context,
ASSERT (0 == rmp->msg_class[class_len - 1]);
ASSERT (0 == rmp->message[message_len - 1]);

vec_free (msg_class);

vl_api_send_msg (reg, (u8 *) rmp);
}

Expand Down

0 comments on commit ec48a95

Please sign in to comment.