[balsa] address-book-extern: Use pclose() to close gc



commit 6631d18d39ac9a1d14de3729ad7109b0188a8340
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Tue Oct 5 15:56:00 2021 -0400

    address-book-extern: Use pclose() to close gc
    
    because gc was returned by popen() [-Werror=mismatched-dealloc]

 libbalsa/address-book-extern.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libbalsa/address-book-extern.c b/libbalsa/address-book-extern.c
index 0ddd9bfa0..6ea2bf7fe 100644
--- a/libbalsa/address-book-extern.c
+++ b/libbalsa/address-book-extern.c
@@ -281,7 +281,7 @@ libbalsa_address_book_externq_add_address(LibBalsaAddressBook * ab,
                    full_name, "TODO");
         if ((gc = popen(command, "r")) == NULL)
             return LBABERR_CANNOT_WRITE;
-        if (fclose(gc) != 0)
+        if (pclose(gc) != 0)
             return LBABERR_CANNOT_WRITE;
 
         return LBABERR_OK;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]