diff options
author | jbj <devnull@localhost> | 2000-12-12 20:03:45 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2000-12-12 20:03:45 +0000 |
commit | db32ab6bea1b635129820d6b628e6156c61b5385 (patch) | |
tree | 055f7ee7d5e06ba0b3e858b82f639310b892503d /rpm.c | |
parent | 2e9d2616969433851a1c883c900d6ea5acde67b7 (diff) | |
download | rpm-db32ab6bea1b635129820d6b628e6156c61b5385.tar.gz |
Sync with rpm-4_0 branch.
CVS patchset: 4338
CVS date: 2000/12/12 20:03:45
Diffstat (limited to 'rpm.c')
-rwxr-xr-x | rpm.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -6,6 +6,7 @@ #include "build.h" #include "install.h" #include "signature.h" +#include "debug.h" #define GETOPT_ADDSIGN 1005 #define GETOPT_RESIGN 1006 @@ -655,7 +656,7 @@ int main(int argc, const char ** argv) poptResetContext(optCon); - if (qva->qva_queryFormat) xfree(qva->qva_queryFormat); + if (qva->qva_queryFormat) free((void *)qva->qva_queryFormat); memset(qva, 0, sizeof(*qva)); qva->qva_source = RPMQV_PACKAGE; qva->qva_mode = ' '; @@ -748,7 +749,7 @@ int main(int argc, const char ** argv) case GETOPT_EVALMACRO: { const char *val = rpmExpand(optArg, NULL); fprintf(stdout, "%s\n", val); - xfree(val); + free((void *)val); noUsageMsg = 1; } break; @@ -1197,7 +1198,7 @@ int main(int argc, const char ** argv) freeNames(); freeFilesystems(); urlFreeCache(); - if (qva->qva_queryFormat) xfree(qva->qva_queryFormat); + if (qva->qva_queryFormat) free((void *)qva->qva_queryFormat); #if HAVE_MCHECK_H && HAVE_MTRACE muntrace(); /* Trace malloc only if MALLOC_TRACE=mtrace-output-file. */ |