The Brass Bottle (1964)

A genie tends to get his master into more predicaments than he gets him out of.