summaryrefslogtreecommitdiff
path: root/rpmio
diff options
context:
space:
mode:
Diffstat (limited to 'rpmio')
-rw-r--r--rpmio/rpmfileutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpmio/rpmfileutil.c b/rpmio/rpmfileutil.c
index 060d0c1d7..bb99d418f 100644
--- a/rpmio/rpmfileutil.c
+++ b/rpmio/rpmfileutil.c
@@ -480,7 +480,7 @@ char * rpmGenPath(const char * urlroot, const char * urlmdir,
char * xfile = rpmGetPath(urlfile, NULL);
const char * file = xfile;
char * result;
- const char * url = NULL;
+ char * url = NULL;
int nurl = 0;
int ut;
@@ -516,7 +516,7 @@ char * rpmGenPath(const char * urlroot, const char * urlmdir,
xroot = _free(xroot);
xmdir = _free(xmdir);
xfile = _free(xfile);
- _constfree(url);
+ free(url);
return result;
}