Remove needless atomic_add() accessing freed memory. CID 10551.
This commit is contained in:
parent
ebc0d47cc6
commit
c11c724e25
@ -104,7 +104,6 @@ delete_device(void * storage)
|
||||
LOG(("delete_device: *storage:%p\n",storage));
|
||||
|
||||
free(storage); // free the memory allocated in create_device
|
||||
atomic_add(&mpu_device->count,-1);
|
||||
|
||||
return B_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user