diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2014-04-22 22:02:06 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2014-04-22 22:02:06 +0000 |
| commit | b04a7a0baf6523245034b8ccd06cd0176b8a18cf (patch) | |
| tree | 72be8a76cd83688338f881c969e6dfc0583ec8ff /usr.sbin/pkg/pkg.c | |
| parent | c145c34c0926bf7920fbe5cf28d7d4ea495d48c3 (diff) | |
| parent | d4fc17b1e5ff64ea70cfb02594ae87f599f81c29 (diff) | |
Notes
Diffstat (limited to 'usr.sbin/pkg/pkg.c')
| -rw-r--r-- | usr.sbin/pkg/pkg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg/pkg.c b/usr.sbin/pkg/pkg.c index 545d6dc0523b1..1b1a01cf60ebd 100644 --- a/usr.sbin/pkg/pkg.c +++ b/usr.sbin/pkg/pkg.c @@ -270,7 +270,7 @@ cleanup: static struct fingerprint * parse_fingerprint(ucl_object_t *obj) { - ucl_object_t *cur; + const ucl_object_t *cur; ucl_object_iter_t it = NULL; const char *function, *fp, *key; struct fingerprint *f; @@ -349,7 +349,7 @@ load_fingerprint(const char *dir, const char *filename) if (f != NULL) f->name = strdup(filename); - ucl_object_free(obj); + ucl_object_unref(obj); ucl_parser_free(p); return (f); |
