Skip to content
Snippets Groups Projects
Commit 95b79668 authored by Cédric Roux's avatar Cédric Roux
Browse files

bugfix: fix crash when UE disconnects

Using the basic simulator and valgrind, it was found that
the lack of initialization of those two pointers leads to
some very nasty behavior of some other parts of the system.
parent 1603e99d
No related branches found
No related tags found
3 merge requests!433Merging develop into develop-nr,!430Develop nr merge2,!389Develop integration 2018 w36
......@@ -51,6 +51,8 @@ extern "C" {
mem_block_t *get_free_mem_block (uint32_t sizeP, const char *caller) {
mem_block_t *ptr=(mem_block_t *)malloc(sizeP+sizeof(mem_block_t));
ptr->next = NULL;
ptr->previous = NULL;
ptr->data=((unsigned char *)ptr)+sizeof(mem_block_t);
ptr->size=sizeP;
return ptr;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment