From 45d9a3041404b6c6a1fb931cf7c1d38e5085e0b3 Mon Sep 17 00:00:00 2001 From: Daniel Mack Date: Fri, 24 Jul 2015 13:49:11 +0200 Subject: tree-wide: do not use _cleanup_free_ on const pointers free() cannot be used with const pointers. However, our _cleanup_free_ handler features cast logic that hides that qualifier, so we don't get a warning. --- src/import/pull-dkr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/import') diff --git a/src/import/pull-dkr.c b/src/import/pull-dkr.c index 78e3184c42..67ca1ce8e4 100644 --- a/src/import/pull-dkr.c +++ b/src/import/pull-dkr.c @@ -793,7 +793,7 @@ static void dkr_pull_job_on_finished_v2(PullJob *j) { } else if (i->tags_job == j) { const char *url; - _cleanup_free_ const char *buf; + _cleanup_free_ char *buf; _cleanup_json_variant_unref_ JsonVariant *doc = NULL; JsonVariant *e = NULL; -- cgit v1.2.3-54-g00ecf