loadparm: make the source3/ lp_ functions take an explicit TALLOC_CTX *.
[kai/samba.git] / source3 / printing / load.c
index af4dcc7a2b31a9678fac2ec92ea20e5714164f44..136d055088fd260af73dddd9d6b2384c3355face 100644 (file)
@@ -40,7 +40,7 @@ static void add_auto_printers(void)
        if (pnum < 0)
                return;
 
-       auto_serv = lp_auto_services();
+       auto_serv = lp_auto_services(talloc_tos());
        str = SMB_STRDUP(auto_serv);
        TALLOC_FREE(auto_serv);
        if (str == NULL) {