poptContext rpmcliFini(poptContext optCon) { poptFreeContext(optCon); rpmFreeMacros(NULL); rpmFreeMacros(rpmCLIMacroContext); rpmFreeRpmrc(); rpmlogClose(); rpmcliInitialized = -1; return NULL; }
void probe_fini (void *ptr) { struct rpm_probe_global *r = (struct rpm_probe_global *)ptr; rpmFreeCrypto(); rpmFreeRpmrc(); rpmFreeMacros(NULL); rpmlogClose(); // If probe_init() failed r->rpmts and r->mutex were not initialized if (r == NULL) return; rpmtsFree(r->rpmts); pthread_mutex_destroy (&(r->mutex)); return; }