From 2ea00da3929b9b50c3860914249b3ea7691b63c8 Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Mon, 2 Sep 2013 11:37:06 +0200 Subject: libnetfs: track file name in struct peropen Track the relative path used to obtain a file handle in the struct peropen. * libnetfs/netfs.h (struct peropen): New field path. * libnetfs/make-peropen.c (netfs_make_peropen): Initialize path. * libnetfs/release-peropen.c (netfs_release_peropen): Free path. * libnetfs/fsys-getroot.c (netfs_S_fsys_getroot): Initialize path. * libnetfs/dir-lookup.c (netfs_S_dir_lookup): Preserve the path. --- libnetfs/release-peropen.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libnetfs/release-peropen.c') diff --git a/libnetfs/release-peropen.c b/libnetfs/release-peropen.c index 3e650999..d4d3574c 100644 --- a/libnetfs/release-peropen.c +++ b/libnetfs/release-peropen.c @@ -41,6 +41,7 @@ netfs_release_peropen (struct peropen *po) netfs_nput (po->np); + free (po->path); free (po); } } -- cgit v1.2.3