Skip to content
Snippets Groups Projects
Commit 9c23e9f8 authored by Ali Mohammed's avatar Ali Mohammed
Browse files

avoid seg fault on freeing cdo data with 0 size

parent 225b2081
Branches
No related tags found
No related merge requests found
......@@ -378,10 +378,11 @@ int main(int argc, char *argv[]) {
status = mstro_finalize();
/* free allocated data*/
if (size_CDO != 0) {
for(int i = 0; i < num_CDOs; i++){
free(CDO_data[i]);
}
}
assert(status == MSTRO_OK);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment