Skip to content

Commit

Permalink
fix: add kfree
Browse files Browse the repository at this point in the history
Signed-off-by: TetsuKawa <kawaguchitnon@icloud.com>
  • Loading branch information
TetsuKawa committed Mar 4, 2025
1 parent e7004cf commit 50b0f83
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions agnocast_kmod/agnocast.c
Original file line number Diff line number Diff line change
Expand Up @@ -1433,6 +1433,7 @@ static int get_topic_subscriber_info(
dev_warn(
agnocast_device, "The number of subscribers is over MAX_TOPIC_INFO_RET_NUM=%d\n",
MAX_TOPIC_INFO_RET_NUM);
kfree(topic_info_mem);
return -ENOBUFS;
}

Expand Down Expand Up @@ -1489,6 +1490,7 @@ static int get_topic_publisher_info(
dev_warn(
agnocast_device, "The number of publishers is over MAX_TOPIC_INFO_RET_NUM=%d\n",
MAX_TOPIC_INFO_RET_NUM);
kfree(topic_info_mem);
return -ENOBUFS;
}

Expand Down

0 comments on commit 50b0f83

Please sign in to comment.