merge "default" into my branch roker-linux
authorRoker <roker@pep-project.org>
Thu, 14 Jul 2016 10:22:54 +0200
branchroker-linux
changeset 873b4a7faf689d2
parent 872 90970c754308
parent 871 f0c1582416e3
child 875 f89fe299d827
merge "default" into my branch
     1.1 --- a/src/message_api.c	Thu Jul 14 10:13:08 2016 +0200
     1.2 +++ b/src/message_api.c	Thu Jul 14 10:22:54 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",