Remove needless atomic_add() accessing freed memory. CID 10551.

This commit is contained in:
Michael Lotz 2011-12-12 03:07:56 +01:00
parent ebc0d47cc6
commit c11c724e25

View File

@ -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;
}