Skip to content

Fix memory double free error#96

Merged
jserv merged 1 commit intoDLTcollab:devfrom
marktwtn:fix-invalid-mem-operation
Feb 2, 2019
Merged

Fix memory double free error#96
jserv merged 1 commit intoDLTcollab:devfrom
marktwtn:fix-invalid-mem-operation

Conversation

@marktwtn
Copy link
Collaborator

@marktwtn marktwtn commented Feb 1, 2019

The memory double free error occurs if we initialize and destroy dcurl repeatedly.
dcurl maintains a list of nodes for different hardwares.
The error is caused by forgetting to remove the nodes from the list.
To fix it, add the corresponding function list_del() in dcurl_destroy().

Besides fixing the error, one of the testcases is modified
to repeatedly test the initialization and destruction of dcurl N times.
The value of N equals to 5.

Close #94.

The memory double free error occurs if we initialize and destroy dcurl repeatedly.
dcurl maintains a list of nodes for different hardwares.
The error is caused by forgetting to remove the nodes from the list.
To fix it, add the corresponding function list_del() in dcurl_destroy().

Besides fixing the error, one of the testcases is modified
to repeatedly test the initialization and destruction of dcurl N times.
The value of N equals to 5.

Close DLTcollab#94.
@jserv jserv merged commit ee0804a into DLTcollab:dev Feb 2, 2019
@marktwtn marktwtn deleted the fix-invalid-mem-operation branch February 4, 2019 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants