templates / branches--on commit apply: free patch->{def,old,new}_name fields (2901bbe)
   1: this is just to ensure the directory exists.