diff --git a/fs/tmpfs/fs_tmpfs.c b/fs/tmpfs/fs_tmpfs.c index f1b62e69760..947ea028f21 100644 --- a/fs/tmpfs/fs_tmpfs.c +++ b/fs/tmpfs/fs_tmpfs.c @@ -2437,6 +2437,7 @@ errout_with_newparent: errout_with_lock: tmpfs_unlock(fs); + kmm_free(copy); return ret; }