한 task가 malloc()으로 메모리를 할당 받아서
link list로 관리 하고 있습니다.
좀 이따가, 그 list에서 node를 하나 빼고,
fork()를 했습니다.
이제 free를 해야겠는데,
parent에서 free해야 합니까? child에서 free해야합니까?
아님 둘다 해줘야 하나요?
[code:1]int get_and_run_todo()
{
struct _sipc_upman_ *todo; // malloc 받는 구조체
todo = get_upman_list(); // linked list에서 하나 빼옴.
if( todo == NULL )
continue;
if( ( childpid = fork() ) < 0 )