<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/3092#discussion_r31516438">sys/net/crosslayer/ng_pktbuf/ng_pktbuf.c</a>:</p>
<pre style='color:#555'>> -        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;
> -        }
> -    }
</pre>
<p><img class="emoji" title=":+1:" alt=":+1:" src="https://assets-cdn.github.com/images/icons/emoji/unicode/1f44d.png" height="20" width="20" align="absmiddle"></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/RIOT-OS/RIOT/pull/3092/files#r31516438">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AEn7YPlqWHrHDIcYHsBQBZbvbOGRFY4Vks5oPZhCgaJpZM4Er5eD.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/RIOT-OS/RIOT/pull/3092/files#r31516438"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>