fixed some memory leak.
fixed some memory leak.

TODO: Review _osync_format_env_find_path_fn and especially the
implementation of detector usage/detection.


git-svn-id: e31799a7ad59d6ea355ca047c69e0aee8a59fcd3@3613 53f5c7ee-bee3-0310-bbc5-ea0e15fffd5e

ianmartin/opensync,ianmartin/opensync