Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 8ef1c1e in mainline


Ignore:
Timestamp:
2016-07-08T11:06:09Z (4 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
master
Children:
fb4a424
Parents:
234f47e
git-author:
Manuele Conti <conti.manuele@…> (2016-07-08 11:06:09)
git-committer:
Jakub Jermar <jakub@…> (2016-07-08 11:06:09)
Message:

inetsrv: Fix memory leak in reass_dgram_insert_frag()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/inetsrv/reass.c

    r234f47e r8ef1c1e  
    193193
    194194        data_copy = malloc(packet->size);
    195         if (data_copy == NULL)
     195        if (data_copy == NULL) {
     196                free(frag);
    196197                return ENOMEM;
     198        }
    197199
    198200        memcpy(data_copy, packet->data, packet->size);
Note: See TracChangeset for help on using the changeset viewer.