I believe it is hdfsFreeFileInfo(). Avinash
-----Original Message----- From: Taeho Kang [mailto:[EMAIL PROTECTED] Sent: Sunday, October 07, 2007 10:25 PM To: [email protected] Subject: Hadoop C/C++ API : hdfsListDirectory and freehdfsFileInfo Hello all, I am using Hadoop C/C++ API with API definitions found hdfs.h In comments for hdfsListDirectory function, there is a line "Get list of files/directories for a given directory-path. freehdfsFileInfo should be called to deallocate memory." However, there is no freehdfsFileInfo found anywhere. Or can I just free the memory allocated by hdfsListDirectory function? Thank you in advance, Taeho p.s. Here is the function API for hdfsListDirectory /** * hdfsListDirectory - Get list of files/directories for a given * directory-path. freehdfsFileInfo should be called to deallocate memory. * @param fs The configured filesystem handle. * @param path The path of the directory. * @param numEntries Set to the number of files/directories in path. * @return Returns a dynamically-allocated array of hdfsFileInfo * objects; NULL on error. */ hdfsFileInfo *hdfsListDirectory(hdfsFS fs, const char* path, int *numEntries); -- Taeho Kang [tkang.blogspot.com]
