mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
6lowpan: free fragment buffer in error case
This commit is contained in:
parent
429162c20f
commit
e06dce55b1
@ -486,6 +486,7 @@ lowpan_reas_buf_t *new_packet_buffer(uint16_t datagram_size,
|
||||
return new_buf;
|
||||
}
|
||||
else {
|
||||
free(new_buf);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user