diff options
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2015-12-04 14:27:41 -0500 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2015-12-05 18:10:43 +1000 |
commit | a8e2578febbb71d1b788c7270c2be57ca1e64dec (patch) | |
tree | d696b181d2f333fb2ec0376e4ae5681be0510747 /src/pacman/pacman.c | |
parent | b8a72770619a29db436e2a3883ebe03910a8e827 (diff) | |
download | pacman-a8e2578febbb71d1b788c7270c2be57ca1e64dec.tar.xz |
remove soft interrupt handler before cleanup
The soft interrupt handler dereferences config, causing a segfault if
it is called during cleanup.
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src/pacman/pacman.c')
-rw-r--r-- | src/pacman/pacman.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index 4237b4d4..2380bd17 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -279,6 +279,7 @@ static void setuseragent(void) */ static void cleanup(int ret) { + remove_soft_interrupt_handler(); if(config) { /* free alpm library resources */ if(config->handle && alpm_release(config->handle) == -1) { |