On Fri, May 18, 2012 at 10:17:32AM +0800, Liu Yuan wrote: > Should free(lock_path), or use stack to allocate the space. True, no need to keep the path name around after we opened it.