(2012·安徽高考)I remembered ________ the door before I left the office, but forgot to turn off the lights.
#11369
A
locking
B
to lock
C
having locked
D
to have locked