fix #91: fixed filepointer leak.
authorKrista Grothoff <krista@pep-project.org>
Wed, 20 Jul 2016 15:26:26 +0200
changeset 91572fe8bd4ae5e
parent 914 08a0252d82c3
child 917 4d844c91fcf3
child 918 45c80cc4c2ed
child 922 96ca717a851f
fix #91: fixed filepointer leak.
src/pgp_gpg.c
     1.1 --- a/src/pgp_gpg.c	Wed Jul 20 15:09:03 2016 +0200
     1.2 +++ b/src/pgp_gpg.c	Wed Jul 20 15:26:26 2016 +0200
     1.3 @@ -37,6 +37,9 @@
     1.4          assert(length == stringlist_length(values));
     1.5          if (!(length == stringlist_length(values) &&
     1.6                length <= sizeof(unsigned int) * CHAR_BIT)) {
     1.7 +            r = Fclose(f);
     1.8 +            assert(r == 0);
     1.9 +        
    1.10              return false;
    1.11          }
    1.12