Skip to content

Commit

Permalink
Merge pull request #2578 from c1728p9/fix_double_free
Browse files Browse the repository at this point in the history
Fix double free in NanostackInterface
  • Loading branch information
sg- authored Sep 9, 2016
2 parents b71bfd6 + dd07c52 commit b10e3a9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ void NanostackSocket::data_free_all(void)
// No mode requirement

NanostackBuffer *buffer = rxBufChain;
rxBufChain = NULL;
while (buffer != NULL) {
NanostackBuffer *next_buffer = buffer->next;
FREE(buffer);
Expand Down

0 comments on commit b10e3a9

Please sign in to comment.