Frees the orig variable in the path_split function

Signed-off-by: johnstevenson <john-stevenson@blueyonder.co.uk>
Style-cleanup

Signed-off-by: johnstevenson <john-stevenson@blueyonder.co.uk>