diff options
Diffstat (limited to 'src/kernel/vfs/vdir.h')
-rw-r--r-- | src/kernel/vfs/vdir.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 { |