nicer
authorvb
Sun, 08 Feb 2015 13:29:20 -0500
changeset 52a667998cedf1
parent 51 761bc0b46b98
child 53 d9eacd197962
nicer
src/mime.c
     1.1 --- a/src/mime.c	Sun Feb 08 13:27:08 2015 -0500
     1.2 +++ b/src/mime.c	Sun Feb 08 13:29:20 2015 -0500
     1.3 @@ -25,7 +25,7 @@
     1.4      FILE *file = NULL;
     1.5      size_t size;
     1.6      char *buf = NULL;
     1.7 -    PEP_STATUS error = PEP_OUT_OF_MEMORY;
     1.8 +    PEP_STATUS error;
     1.9  
    1.10      assert(plaintext);
    1.11      assert(resulttext);
    1.12 @@ -158,12 +158,16 @@
    1.13  
    1.14  err_buffer:
    1.15      error = PEP_BUFFER_TOO_SMALL;
    1.16 -    goto enomem;
    1.17 +    goto release;
    1.18  
    1.19  err_file:
    1.20      error = PEP_CANNOT_CREATE_TEMP_FILE;
    1.21 +    goto release;
    1.22  
    1.23  enomem:
    1.24 +    error = PEP_OUT_OF_MEMORY;
    1.25 +
    1.26 +release:
    1.27      free(buf);
    1.28      free(template);
    1.29