pv: clone result of several string transformations

- it is safer for assigning back to the same variable on which the
  transformation was applied
- reported by Martin Mikkelsen
(cherry picked from commit fe7e4a5152674aa9c81c09dd2fc9938d9e9e762e)

Conflicts:
	modules_k/pv/pv_trans.c
modules/uac: use the proper parameter name on error message. (Closes: FS#239)
core: avoid doing dns srv again after naptr function that includes srv lookup

(cherry picked from commit 80935f9e8bbe20e5c320828183999b5d395ec34c)
perl: move initialization of SIP message var after initialization of temporary environment

- upon a report by David Cunningham of a leak in operating system
  memory
- backport from master commit 6ff74701652a11497bd82ee3ba2ac7547d1ce666
perl: push the sip msg structure to perl after initializing it

- reported by David Cunningham
- backport from amster commit 341f810dca0cc0596e22f2ac1bca86de0b8d142d
tm: fix leak caused by sip registration lookups

- Copy sip_msg->path_vec from shared memory for use in tm
- free path_vec in free_faked_req()
Merge branch 'leak_patch' into flowroute-3.3

Conflicts:
	modules/tm/t_reply.c