Diff between 27358b6d8c92f11455fda44e611021946ade7403 and e3d0e44b7d7b6e2bc0c4e5e28a68065fac1e2447
Changed Files
| File | Additions | Deletions | Status |
| tools/btmgmt.c | +1 | -1 | modified |
Full Patch
diff --git a/tools/btmgmt.c b/tools/btmgmt.c
index bd83ac7..f995ada 100644
--- a/tools/btmgmt.c
+++ b/tools/btmgmt.c
@@ -3746,7 +3746,7 @@ static bool parse_bytes(char *optarg, uint8_t **bytes, size_t *len)
for (i = 0; i < *len; i++) {
if (sscanf(optarg + (i * 2), "%2hhx", *bytes + i) != 1) {
error("Invalid data");
- free(bytes);
+ free(*bytes);
*bytes = NULL;
return false;
}