add free(filename) here, too roker-linux
authorRoker <roker@pep-project.org>
Wed, 13 Jul 2016 23:25:35 +0200
branchroker-linux
changeset 86728e65ff06c40
parent 865 6820715a0928
child 868 e2bee94816ac
add free(filename) here, too
(transplanted from b68fb7922e30533221b69098ffa487e87b7f5441)
src/message_api.c
     1.1 --- a/src/message_api.c	Wed Jul 13 23:21:11 2016 +0200
     1.2 +++ b/src/message_api.c	Wed Jul 13 23:25:35 2016 +0200
     1.3 @@ -568,6 +568,7 @@
     1.4  
     1.5                      _d = bloblist_add(_d, _ctext, csize, "application/octet-stream",
     1.6                          filename);
     1.7 +                    free(filename);
     1.8                      if (_d == NULL)
     1.9                          goto enomem;
    1.10                  }