Fixing holes in drywall using glue patches
There are many ways to hide small holes in Sheetrock and plaster. One is toothpaste as jsotola suggested but some land lords or slum lizards use black lights to find this as tooth paste many times has whiteners, these show up and my friend Got tired of finding crappy hidden fixes. For these small holes most of the time I would say he was an AZZ , then when I saw 1/2” and larger holes I started to understand! 
A bit of joint compound pressed into the spot , maybe watered down a bit to fill the small void is legal and he cannot keep the deposit , but toothpaste he can be identified , my friend just got tired of crappy fixes and toothpaste = no refund of deposit. Just saying. A quart of premixed mud can fill hundreds of nail holes , fill the hole then wipe with a wet sponge. This is the best advice I can give after having several rentals and working for a friend in a college town.