Skip to content

Commit

Permalink
Use close_module_list() to free the list.
Browse files Browse the repository at this point in the history
There are a pair of Coverity CIDs for these two.
  • Loading branch information
jackburton79 committed Jan 7, 2013
1 parent fc11b68 commit e4a05be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/add-ons/kernel/network/stack/device_interfaces.cpp
Expand Up @@ -464,6 +464,8 @@ get_device_interface(const char* name, bool create)
}
}

close_module_list(cookie);

return NULL;
}

Expand Down
2 changes: 2 additions & 0 deletions src/add-ons/kernel/network/stack/stack.cpp
Expand Up @@ -759,6 +759,8 @@ scan_modules(const char* path)
put_module(name);
}
}

close_module_list(cookie);
}


Expand Down

0 comments on commit e4a05be

Please sign in to comment.