From fadf399405ca5d918dd5e1182fadc3d82f6bc900 Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Sat, 6 Jul 2013 17:35:49 +0200 Subject: (nothing) --- src/kernel/vfs/vdir.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/kernel') diff --git a/src/kernel/vfs/vdir.h b/src/kernel/vfs/vdir.h index 366b3f1..6aacc2f 100644 --- a/src/kernel/vfs/vdir.h +++ b/src/kernel/vfs/vdir.h @@ -12,6 +12,10 @@ struct vdir_child { vdir_child(char* na, node* nd) : el(nd) { name = strdup(na); } + + virtual ~vdir_child() { + free(name); + } }; class vdir : public node { -- cgit v1.2.3