Skip to content
Snippets Groups Projects
Commit 2947c098 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

oi_list might be null if overlay initialization failed for any reason

parent 3e89a4ff
No related branches found
No related tags found
No related merge requests found
......@@ -210,10 +210,13 @@ over_db_destroy(
rc = over_db_func( be, db_destroy );
for (next = on->on_next; on; on=next) {
next = on->on_next;
free( on );
if ( on ) {
for (next = on->on_next; on; on=next) {
next = on->on_next;
free( on );
}
}
free( oi );
return rc;
}
......
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