apps/s_socket.c:287: error: USE_AFTER_FREE
  accessing memory that was invalidated by call to `free()` on line 287.
Showing all 6 steps of the trace


apps/s_socket.c:281:7: invalidation part of the trace starts here
279.   	for (;;)
280.   		{
281.   		if (do_accept(accept_socket,&sock,&name) == 0)
             ^
282.   			{
283.   			SHUTDOWN(accept_socket);

apps/s_socket.c:281:7: variable `name` accessed here
  279.   	for (;;)
  280.   		{
  281.   		if (do_accept(accept_socket,&sock,&name) == 0)
               ^
  282.   			{
  283.   			SHUTDOWN(accept_socket);

apps/s_socket.c:287:21: was invalidated by call to `free()`
  285.   			}
  286.   		i=(*cb)(name,sock, context);
  287.   		if (name != NULL) Free(name);
                             ^
  288.   		SHUTDOWN2(sock);
  289.   		if (i < 0)

apps/s_socket.c:281:7: use-after-lifetime part of the trace starts here
279.   	for (;;)
280.   		{
281.   		if (do_accept(accept_socket,&sock,&name) == 0)
             ^
282.   			{
283.   			SHUTDOWN(accept_socket);

apps/s_socket.c:281:7: variable `name` accessed here
  279.   	for (;;)
  280.   		{
  281.   		if (do_accept(accept_socket,&sock,&name) == 0)
               ^
  282.   			{
  283.   			SHUTDOWN(accept_socket);

apps/s_socket.c:287:21: invalid access occurs here
  285.   			}
  286.   		i=(*cb)(name,sock, context);
  287.   		if (name != NULL) Free(name);
                             ^
  288.   		SHUTDOWN2(sock);
  289.   		if (i < 0)
