In the first sentence "think" is transitive. The second sentence can be looked at several ways. You can consider "think" intransitive here. Then "of freedom" is a adverbial phrase modifying "think". Another way of looking at it is to consider the verb to be "to think of", which is a transitive (only) verb. Then "freedom" is the direct object of "to think of."