summaryrefslogtreecommitdiff
path: root/src/pacman/pacman.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pacman/pacman.c')
-rw-r--r--src/pacman/pacman.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index 418a1591..af1ef932 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -48,7 +48,7 @@
#include "sync.h"
#include "pacman.h"
-pmconfig_t *config = NULL;
+config_t *config = NULL;
PM_DB *db_local;
/* list of (sync_t *) structs for sync locations */
@@ -95,6 +95,7 @@ int main(int argc, char *argv[])
/* parse the command line */
ret = parseargs(argc, argv);
if(ret != 0) {
+ config_free(config);
exit(ret);
}