diff --git a/cli/main.c b/cli/main.c index fc89486f..e763d0c3 100644 --- a/cli/main.c +++ b/cli/main.c @@ -188,7 +188,7 @@ static int print_dev_info(struct switchtec_dev *dev) { int ret; int device_id; - char version[64]; + char version[32]; enum switchtec_boot_phase phase; enum switchtec_rev hw_rev; diff --git a/lib/fw.c b/lib/fw.c index a3e0c55c..27ecbce0 100644 --- a/lib/fw.c +++ b/lib/fw.c @@ -1601,6 +1601,7 @@ switchtec_fw_part_summary(struct switchtec_dev *dev) break; default: errno = EINVAL; + free(summary); return NULL; }