remove unecessary check, because free(NULL) is safe.
authorRoker <roker@pep-project.org>
Mon, 18 Jul 2016 08:54:11 +0200
changeset 904a3c701c6109f
parent 903 7a040beb4000
child 905 79bfd4454dac
child 906 8988b8816f6b
child 907 8f5cca5bfa2d
remove unecessary check, because free(NULL) is safe.
src/bloblist.c
     1.1 --- a/src/bloblist.c	Sun Jul 17 23:48:45 2016 +0200
     1.2 +++ b/src/bloblist.c	Mon Jul 18 08:54:11 2016 +0200
     1.3 @@ -48,12 +48,9 @@
     1.4      
     1.5      while (curr) {
     1.6          next = curr->next;
     1.7 -        if (curr->value)
     1.8 -            free(curr->value);
     1.9 -        if (curr->mime_type)
    1.10 -            free(curr->mime_type);
    1.11 -        if (curr->filename)
    1.12 -            free(curr->filename);
    1.13 +        free(curr->value);
    1.14 +        free(curr->mime_type);
    1.15 +        free(curr->filename);
    1.16          free(curr);
    1.17          curr = next;
    1.18      }