diff options
Diffstat (limited to 'discover')
-rw-r--r-- | discover/dt.c | 1 | ||||
-rw-r--r-- | discover/parser.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/discover/dt.c b/discover/dt.c index a7383e1..e7214e0 100644 --- a/discover/dt.c +++ b/discover/dt.c @@ -56,6 +56,7 @@ int get_ipmi_sensor(void *t, enum ipmi_sensor_ids sensor_id) rc = __be32_to_cpu(*(uint32_t *)buf); out: + talloc_free(buf); free(namelist); return rc; } diff --git a/discover/parser.c b/discover/parser.c index 7833981..8e767c6 100644 --- a/discover/parser.c +++ b/discover/parser.c @@ -62,6 +62,7 @@ int parser_check_dir(struct discover_context *ctx, path = local_path(ctx, dev, dirname); rc = stat(path, &statbuf); + talloc_free(path); if (!rc) return -1; |