[riot-notifications] [RIOT] ng_pktbuf: Some fixes (#3092)

Martine Lenders notifications at github.com
Tue Jun 2 14:26:08 CEST 2015


> -        pkt = pkt->next;
> -        hdr = _pktbuf_add_unsafe(res, pkt->data, pkt->size, pkt->type);
> -
> -        if (hdr == NULL) {
> -            do {
> -                ng_pktsnip_t *next = res->next;
> -
> -                _pktbuf_internal_free(res->data);
> -                _pktbuf_internal_free(res);
> -
> -                res = next;
> -            } while (res);
> -
> -            return NULL;
> -        }
> -    }

(just hopefully with a little bit more memory efficient packet buffer)

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/3092/files#r31516471
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20150602/b0485f53/attachment.html>


More information about the notifications mailing list