From 588375444bb391723ed39d025de9e05129251ae5 Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Mon, 5 Mar 2007 23:50:50 +0200 Subject: [PATCH] smb: Comment about not freeing memory in the child process. Corresponds to FSP commit 368a749123dd7013ba445905c07eaea95b1e0f3b. --- src/protocol/smb/smb2.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/protocol/smb/smb2.c b/src/protocol/smb/smb2.c index f6f59b7e..692f8caf 100644 --- a/src/protocol/smb/smb2.c +++ b/src/protocol/smb/smb2.c @@ -67,6 +67,12 @@ struct module smb_protocol_module = struct_module( /* done: */ NULL ); +/* The child process generally does not bother to free the memory it + * allocates. When the process exits, the operating system will free + * the memory anyway. There is no point in changing this, because the + * child process also inherits memory allocations from the parent + * process, and it would be very cumbersome to free those. */ + static void smb_error(int error) {