Fix memleak in action_rules_motor

Thank you, RNI.

Change-Id: I60e1ddbf3ce2ab5627bf88df1665e9a6401d0e73