Changeset bddec0c in mainline for uspace/srv/hw/netif/dp8390/dp8390.c


Ignore:
Timestamp:
2011-01-11T06:44:35Z (13 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
597c948
Parents:
6b22c97
Message:

do not leak memory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hw/netif/dp8390/dp8390.c

    r6b22c97 rbddec0c  
    541541                        next = current;
    542542                } else if ((header.status & RSR_PRX) && (ne2k->up)) {
    543                         frame_t *frame = ne2k_receive_frame(ne2k, boundary, length);
    544                         if ((frame != NULL) && (frames != NULL))
    545                                 list_append(&frame->link, frames);
     543                        if (frames != NULL) {
     544                                frame_t *frame = ne2k_receive_frame(ne2k, boundary, length);
     545                                if (frame != NULL)
     546                                        list_append(&frame->link, frames);
     547                        }
    546548                }
    547549               
Note: See TracChangeset for help on using the changeset viewer.