Use constfree for rpmts suggestions
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 18 Dec 2007 08:48:10 +0000 (10:48 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 18 Dec 2007 08:48:10 +0000 (10:48 +0200)
- goes down to rpmal returning fnpykey which is declared as const..
  check this later

lib/rpmts.c

index af406c7..452ec48 100644 (file)
@@ -835,7 +835,7 @@ void rpmtsClean(rpmts ts)
     for (i = 0; i < ts->nsuggests; i++) {
        const char * str = ts->suggests[i];
        ts->suggests[i] = NULL;
-       _free(str);
+       _constfree(str);
     }
     ts->suggests = _free(ts->suggests);
     ts->nsuggests = 0;