Caller passes UnixSocketConnector instance into UnixSocketConsumer::ListenSocket() and UnixSocketConsumer::ConnectSocket(), in general cases, after an UnixSocketImpl instance is created, it will in charge of deleting the UnixSocketConnector instance by holding it with a nsAutoPtr. However, at the beginning of these two functions, it would check if mImpl already exists. If it does, then return - without deleting the UnixSocketConnector instance.
Created attachment 725483 [details] [diff] [review] patch 1: v1: fix memory leak in UnixSocketConsumer
5 years ago