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