Sfoglia il codice sorgente

Add a missing rend_service_free in rend_service_add

teor 8 anni fa
parent
commit
93c62f5ac1
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/or/rendservice.c

+ 1 - 0
src/or/rendservice.c

@@ -366,6 +366,7 @@ rend_add_service(smartlist_t *service_list, rend_service_t *service)
                  "have no AF_UNIX support on this platform.  This is "
                  "probably a bug.",
                  p->virtual_port);
+        rend_service_free(service);
         return -1;
 #endif /* defined(HAVE_SYS_UN_H) */
       }