The test-filesys.c code is calling gp_filesystem_get_folder and passing in a 'const char **' instead of 'char **'. It then forgets to free the heap-allocated result. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14892 67ed7778-7388-44ab-90cf-0a291f65f57c