[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tyndur-devel] [PATCH] Kleines Memleak gefixt



! free() in Syscall 42 dazu

Signed-off-by: David Kolossa <dickhuuhn@xxxxxxxxxxxxxx>
---
 src/kernel/src/syscall.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/kernel/src/syscall.c b/src/kernel/src/syscall.c
index 87911fa..b405740 100644
--- a/src/kernel/src/syscall.c
+++ b/src/kernel/src/syscall.c
@@ -751,6 +751,7 @@ void syscall(struct int_stack_frame ** esp)
             char* forty_two = malloc(61);
             memcpy(forty_two, "\nThe Answer to Life, the Universe,
and Everything is ... 42\n", 61);
             kprintf("%s", forty_two);
+            free(forty_two);
             break;
         }

-- 
1.5.6.3