Inside the joint or external?
Internal with bending or straigthening tends to be indicative of meniscus. If so, get it checked out by orthopedic doc ASAP.
External it could be any number of things.... not really sure what it could be based on yoru description. Do you have a picture you can google and mark for example?