Diff between d393274dded3f54394caa13f7ce27b2adbf8683f and f414b4571d04554bc551e0f044ada23b68a7b52e
Changed Files
| File | Additions | Deletions | Status |
| tools/btgatt-client.c | +1 | -0 | modified |
Full Patch
diff --git a/tools/btgatt-client.c b/tools/btgatt-client.c
index ca84780..dadfa37 100644
--- a/tools/btgatt-client.c
+++ b/tools/btgatt-client.c
@@ -449,6 +449,7 @@ static void cmd_read_multiple(struct client *cli, char *cmd_str)
value[i] = strtol(argv[i], &endptr, 0);
if (endptr == argv[i] || *endptr != '\0' || !value[i]) {
printf("Invalid value byte: %s\n", argv[i]);
+ free(value);
return;
}
}