another free() is missing
authorVolker Birk <vb@pep-project.org>
Thu, 14 Jul 2016 07:03:28 +0200
changeset 87012b107a600d3
parent 869 d1e17cdf5aa6
child 871 f0c1582416e3
another free() is missing
src/message_api.c
     1.1 --- a/src/message_api.c	Wed Jul 13 23:49:15 2016 +0200
     1.2 +++ b/src/message_api.c	Thu Jul 14 07:03:28 2016 +0200
     1.3 @@ -562,8 +562,10 @@
     1.4  
     1.5                      char *_ctext = malloc(csize);
     1.6                      assert(_ctext);
     1.7 -                    if (_ctext == NULL)
     1.8 +                    if (_ctext == NULL) {
     1.9 +                        free(filename);
    1.10                          goto enomem;
    1.11 +                    }
    1.12                      memcpy(_ctext, ctext, csize);
    1.13  
    1.14                      _d = bloblist_add(_d, _ctext, csize, "application/octet-stream",