summaryrefslogtreecommitdiff
path: root/rpmqv.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-03-12 13:20:47 +0200
committerPanu Matilainen <pmatilai@redhat.com>2008-03-12 13:20:47 +0200
commitef84de8868a6547ecb8e668d035d4f47bc8cd4af (patch)
treeb8a790f381b739ee3d28816dd5d97d1a80d41f59 /rpmqv.c
parentdd2f0eb3c8a94485098cfd4412a1a14f28335d02 (diff)
downloadrpm-ef84de8868a6547ecb8e668d035d4f47bc8cd4af.tar.gz
rpm-ef84de8868a6547ecb8e668d035d4f47bc8cd4af.tar.bz2
rpm-ef84de8868a6547ecb8e668d035d4f47bc8cd4af.zip
Refcount dbiTags on db open+close, automatically free
- avoids rpmdb_internal include in rpmqv.c and memleak in API clients - avoids having to export dbiTags(Max) at all
Diffstat (limited to 'rpmqv.c')
-rw-r--r--rpmqv.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/rpmqv.c b/rpmqv.c
index 1db5f1e78..1544ac825 100644
--- a/rpmqv.c
+++ b/rpmqv.c
@@ -20,8 +20,6 @@ const char *__progname;
#include <rpm/rpmps.h>
#include <rpm/rpmts.h>
-#include "rpmdb/rpmdb_internal.h" /* XXX for freeing dbiTags */
-
#ifdef IAM_RPMBT
#include "build.h"
#define GETOPT_REBUILD 1003
@@ -855,8 +853,6 @@ exit:
/* keeps memory leak checkers quiet */
rpmFreeFilesystems();
rpmlogClose();
- /* XXX FIXME: hide this in the api */
- dbiTags = _free(dbiTags);
#ifdef IAM_RPMQV
qva->qva_queryFormat = _free(qva->qva_queryFormat);