diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-03-12 13:20:47 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-03-12 13:20:47 +0200 |
commit | ef84de8868a6547ecb8e668d035d4f47bc8cd4af (patch) | |
tree | b8a790f381b739ee3d28816dd5d97d1a80d41f59 /rpmqv.c | |
parent | dd2f0eb3c8a94485098cfd4412a1a14f28335d02 (diff) | |
download | rpm-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.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -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); |