summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-02-04 10:39:12 +0000
committerAurelien Foret <aurelien@archlinux.org>2006-02-04 10:39:12 +0000
commit2b8d00a5e88b450e7484c8e9c3b4292cc141bdda (patch)
tree73648ba29862bffd512d7c9fc7dc9475a95897dc /src
parent633c89b5327bbdb14d0d076cbab474c60dabab57 (diff)
fixed a possible memory leak
Diffstat (limited to 'src')
-rw-r--r--src/pacman/pacman.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index 7738a280..8930d064 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -119,6 +119,7 @@ int main(int argc, char *argv[])
/* special case: PM_OP_SYNC can be used w/ config->op_s_search by any user */
} else {
ERR(NL, "you cannot perform this operation unless you are root.\n");
+ config_free(config);
exit(1);
}
}