summaryrefslogtreecommitdiff
path: root/src/kernel/vfs/vdir.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/vfs/vdir.h')
-rw-r--r--src/kernel/vfs/vdir.h4
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 {