Ignore:
Timestamp:
Jul 2, 2011, 3:35:33 PM (14 years ago)
Author:
Herwig Bauernfeind
Message:

Samba 3.5: Update trunk to 3.5.8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/source3/lib/netapi/libnetapi.c

    r414 r596  
    4040        NET_API_STATUS status;
    4141        WERROR werr;
    42 
    43         status = libnetapi_getctx(&ctx);
    44         if (status != 0) {
     42        TALLOC_CTX *frame = talloc_stackframe();
     43
     44        status = libnetapi_getctx(&ctx);
     45        if (status != 0) {
     46                TALLOC_FREE(frame);
    4547                return status;
    4648        }
     
    7274        }
    7375
     76        TALLOC_FREE(frame);
    7477        return r.out.result;
    7578}
     
    8891        NET_API_STATUS status;
    8992        WERROR werr;
    90 
    91         status = libnetapi_getctx(&ctx);
    92         if (status != 0) {
     93        TALLOC_CTX *frame = talloc_stackframe();
     94
     95        status = libnetapi_getctx(&ctx);
     96        if (status != 0) {
     97                TALLOC_FREE(frame);
    9398                return status;
    9499        }
     
    118123        }
    119124
     125        TALLOC_FREE(frame);
    120126        return r.out.result;
    121127}
     
    133139        NET_API_STATUS status;
    134140        WERROR werr;
    135 
    136         status = libnetapi_getctx(&ctx);
    137         if (status != 0) {
     141        TALLOC_CTX *frame = talloc_stackframe();
     142
     143        status = libnetapi_getctx(&ctx);
     144        if (status != 0) {
     145                TALLOC_FREE(frame);
    138146                return status;
    139147        }
     
    162170        }
    163171
     172        TALLOC_FREE(frame);
    164173        return r.out.result;
    165174}
     
    180189        NET_API_STATUS status;
    181190        WERROR werr;
    182 
    183         status = libnetapi_getctx(&ctx);
    184         if (status != 0) {
     191        TALLOC_CTX *frame = talloc_stackframe();
     192
     193        status = libnetapi_getctx(&ctx);
     194        if (status != 0) {
     195                TALLOC_FREE(frame);
    185196                return status;
    186197        }
     
    212223        }
    213224
     225        TALLOC_FREE(frame);
    214226        return r.out.result;
    215227}
     
    229241        NET_API_STATUS status;
    230242        WERROR werr;
    231 
    232         status = libnetapi_getctx(&ctx);
    233         if (status != 0) {
     243        TALLOC_CTX *frame = talloc_stackframe();
     244
     245        status = libnetapi_getctx(&ctx);
     246        if (status != 0) {
     247                TALLOC_FREE(frame);
    234248                return status;
    235249        }
     
    260274        }
    261275
     276        TALLOC_FREE(frame);
    262277        return r.out.result;
    263278}
     
    275290        NET_API_STATUS status;
    276291        WERROR werr;
    277 
    278         status = libnetapi_getctx(&ctx);
    279         if (status != 0) {
     292        TALLOC_CTX *frame = talloc_stackframe();
     293
     294        status = libnetapi_getctx(&ctx);
     295        if (status != 0) {
     296                TALLOC_FREE(frame);
    280297                return status;
    281298        }
     
    304321        }
    305322
     323        TALLOC_FREE(frame);
    306324        return r.out.result;
    307325}
     
    320338        NET_API_STATUS status;
    321339        WERROR werr;
    322 
    323         status = libnetapi_getctx(&ctx);
    324         if (status != 0) {
     340        TALLOC_CTX *frame = talloc_stackframe();
     341
     342        status = libnetapi_getctx(&ctx);
     343        if (status != 0) {
     344                TALLOC_FREE(frame);
    325345                return status;
    326346        }
     
    350370        }
    351371
     372        TALLOC_FREE(frame);
    352373        return r.out.result;
    353374}
     
    365386        NET_API_STATUS status;
    366387        WERROR werr;
    367 
    368         status = libnetapi_getctx(&ctx);
    369         if (status != 0) {
     388        TALLOC_CTX *frame = talloc_stackframe();
     389
     390        status = libnetapi_getctx(&ctx);
     391        if (status != 0) {
     392                TALLOC_FREE(frame);
    370393                return status;
    371394        }
     
    394417        }
    395418
     419        TALLOC_FREE(frame);
    396420        return r.out.result;
    397421}
     
    409433        NET_API_STATUS status;
    410434        WERROR werr;
    411 
    412         status = libnetapi_getctx(&ctx);
    413         if (status != 0) {
     435        TALLOC_CTX *frame = talloc_stackframe();
     436
     437        status = libnetapi_getctx(&ctx);
     438        if (status != 0) {
     439                TALLOC_FREE(frame);
    414440                return status;
    415441        }
     
    438464        }
    439465
     466        TALLOC_FREE(frame);
    440467        return r.out.result;
    441468}
     
    456483        NET_API_STATUS status;
    457484        WERROR werr;
    458 
    459         status = libnetapi_getctx(&ctx);
    460         if (status != 0) {
     485        TALLOC_CTX *frame = talloc_stackframe();
     486
     487        status = libnetapi_getctx(&ctx);
     488        if (status != 0) {
     489                TALLOC_FREE(frame);
    461490                return status;
    462491        }
     
    488517        }
    489518
     519        TALLOC_FREE(frame);
    490520        return r.out.result;
    491521}
     
    504534        NET_API_STATUS status;
    505535        WERROR werr;
    506 
    507         status = libnetapi_getctx(&ctx);
    508         if (status != 0) {
     536        TALLOC_CTX *frame = talloc_stackframe();
     537
     538        status = libnetapi_getctx(&ctx);
     539        if (status != 0) {
     540                TALLOC_FREE(frame);
    509541                return status;
    510542        }
     
    534566        }
    535567
     568        TALLOC_FREE(frame);
    536569        return r.out.result;
    537570}
     
    548581        NET_API_STATUS status;
    549582        WERROR werr;
    550 
    551         status = libnetapi_getctx(&ctx);
    552         if (status != 0) {
     583        TALLOC_CTX *frame = talloc_stackframe();
     584
     585        status = libnetapi_getctx(&ctx);
     586        if (status != 0) {
     587                TALLOC_FREE(frame);
    553588                return status;
    554589        }
     
    576611        }
    577612
     613        TALLOC_FREE(frame);
    578614        return r.out.result;
    579615}
     
    596632        NET_API_STATUS status;
    597633        WERROR werr;
    598 
    599         status = libnetapi_getctx(&ctx);
    600         if (status != 0) {
     634        TALLOC_CTX *frame = talloc_stackframe();
     635
     636        status = libnetapi_getctx(&ctx);
     637        if (status != 0) {
     638                TALLOC_FREE(frame);
    601639                return status;
    602640        }
     
    631669        }
    632670
     671        TALLOC_FREE(frame);
    633672        return r.out.result;
    634673}
     
    647686        NET_API_STATUS status;
    648687        WERROR werr;
    649 
    650         status = libnetapi_getctx(&ctx);
    651         if (status != 0) {
     688        TALLOC_CTX *frame = talloc_stackframe();
     689
     690        status = libnetapi_getctx(&ctx);
     691        if (status != 0) {
     692                TALLOC_FREE(frame);
    652693                return status;
    653694        }
     
    677718        }
    678719
     720        TALLOC_FREE(frame);
    679721        return r.out.result;
    680722}
     
    693735        NET_API_STATUS status;
    694736        WERROR werr;
    695 
    696         status = libnetapi_getctx(&ctx);
    697         if (status != 0) {
     737        TALLOC_CTX *frame = talloc_stackframe();
     738
     739        status = libnetapi_getctx(&ctx);
     740        if (status != 0) {
     741                TALLOC_FREE(frame);
    698742                return status;
    699743        }
     
    723767        }
    724768
     769        TALLOC_FREE(frame);
    725770        return r.out.result;
    726771}
     
    740785        NET_API_STATUS status;
    741786        WERROR werr;
    742 
    743         status = libnetapi_getctx(&ctx);
    744         if (status != 0) {
     787        TALLOC_CTX *frame = talloc_stackframe();
     788
     789        status = libnetapi_getctx(&ctx);
     790        if (status != 0) {
     791                TALLOC_FREE(frame);
    745792                return status;
    746793        }
     
    771818        }
    772819
     820        TALLOC_FREE(frame);
    773821        return r.out.result;
    774822}
     
    790838        NET_API_STATUS status;
    791839        WERROR werr;
    792 
    793         status = libnetapi_getctx(&ctx);
    794         if (status != 0) {
     840        TALLOC_CTX *frame = talloc_stackframe();
     841
     842        status = libnetapi_getctx(&ctx);
     843        if (status != 0) {
     844                TALLOC_FREE(frame);
    795845                return status;
    796846        }
     
    823873        }
    824874
     875        TALLOC_FREE(frame);
    825876        return r.out.result;
    826877}
     
    840891        NET_API_STATUS status;
    841892        WERROR werr;
    842 
    843         status = libnetapi_getctx(&ctx);
    844         if (status != 0) {
     893        TALLOC_CTX *frame = talloc_stackframe();
     894
     895        status = libnetapi_getctx(&ctx);
     896        if (status != 0) {
     897                TALLOC_FREE(frame);
    845898                return status;
    846899        }
     
    871924        }
    872925
     926        TALLOC_FREE(frame);
    873927        return r.out.result;
    874928}
     
    891945        NET_API_STATUS status;
    892946        WERROR werr;
    893 
    894         status = libnetapi_getctx(&ctx);
    895         if (status != 0) {
     947        TALLOC_CTX *frame = talloc_stackframe();
     948
     949        status = libnetapi_getctx(&ctx);
     950        if (status != 0) {
     951                TALLOC_FREE(frame);
    896952                return status;
    897953        }
     
    925981        }
    926982
     983        TALLOC_FREE(frame);
    927984        return r.out.result;
    928985}
     
    940997        NET_API_STATUS status;
    941998        WERROR werr;
    942 
    943         status = libnetapi_getctx(&ctx);
    944         if (status != 0) {
     999        TALLOC_CTX *frame = talloc_stackframe();
     1000
     1001        status = libnetapi_getctx(&ctx);
     1002        if (status != 0) {
     1003                TALLOC_FREE(frame);
    9451004                return status;
    9461005        }
     
    9691028        }
    9701029
     1030        TALLOC_FREE(frame);
    9711031        return r.out.result;
    9721032}
     
    9851045        NET_API_STATUS status;
    9861046        WERROR werr;
    987 
    988         status = libnetapi_getctx(&ctx);
    989         if (status != 0) {
     1047        TALLOC_CTX *frame = talloc_stackframe();
     1048
     1049        status = libnetapi_getctx(&ctx);
     1050        if (status != 0) {
     1051                TALLOC_FREE(frame);
    9901052                return status;
    9911053        }
     
    10151077        }
    10161078
     1079        TALLOC_FREE(frame);
    10171080        return r.out.result;
    10181081}
     
    10341097        NET_API_STATUS status;
    10351098        WERROR werr;
    1036 
    1037         status = libnetapi_getctx(&ctx);
    1038         if (status != 0) {
     1099        TALLOC_CTX *frame = talloc_stackframe();
     1100
     1101        status = libnetapi_getctx(&ctx);
     1102        if (status != 0) {
     1103                TALLOC_FREE(frame);
    10391104                return status;
    10401105        }
     
    10671132        }
    10681133
     1134        TALLOC_FREE(frame);
    10691135        return r.out.result;
    10701136}
     
    10831149        NET_API_STATUS status;
    10841150        WERROR werr;
    1085 
    1086         status = libnetapi_getctx(&ctx);
    1087         if (status != 0) {
     1151        TALLOC_CTX *frame = talloc_stackframe();
     1152
     1153        status = libnetapi_getctx(&ctx);
     1154        if (status != 0) {
     1155                TALLOC_FREE(frame);
    10881156                return status;
    10891157        }
     
    11131181        }
    11141182
     1183        TALLOC_FREE(frame);
    11151184        return r.out.result;
    11161185}
     
    11271196        NET_API_STATUS status;
    11281197        WERROR werr;
    1129 
    1130         status = libnetapi_getctx(&ctx);
    1131         if (status != 0) {
     1198        TALLOC_CTX *frame = talloc_stackframe();
     1199
     1200        status = libnetapi_getctx(&ctx);
     1201        if (status != 0) {
     1202                TALLOC_FREE(frame);
    11321203                return status;
    11331204        }
     
    11551226        }
    11561227
     1228        TALLOC_FREE(frame);
    11571229        return r.out.result;
    11581230}
     
    11741246        NET_API_STATUS status;
    11751247        WERROR werr;
    1176 
    1177         status = libnetapi_getctx(&ctx);
    1178         if (status != 0) {
     1248        TALLOC_CTX *frame = talloc_stackframe();
     1249
     1250        status = libnetapi_getctx(&ctx);
     1251        if (status != 0) {
     1252                TALLOC_FREE(frame);
    11791253                return status;
    11801254        }
     
    12081282        }
    12091283
     1284        TALLOC_FREE(frame);
    12101285        return r.out.result;
    12111286}
     
    12251300        NET_API_STATUS status;
    12261301        WERROR werr;
    1227 
    1228         status = libnetapi_getctx(&ctx);
    1229         if (status != 0) {
     1302        TALLOC_CTX *frame = talloc_stackframe();
     1303
     1304        status = libnetapi_getctx(&ctx);
     1305        if (status != 0) {
     1306                TALLOC_FREE(frame);
    12301307                return status;
    12311308        }
     
    12561333        }
    12571334
     1335        TALLOC_FREE(frame);
    12581336        return r.out.result;
    12591337}
     
    12721350        NET_API_STATUS status;
    12731351        WERROR werr;
    1274 
    1275         status = libnetapi_getctx(&ctx);
    1276         if (status != 0) {
     1352        TALLOC_CTX *frame = talloc_stackframe();
     1353
     1354        status = libnetapi_getctx(&ctx);
     1355        if (status != 0) {
     1356                TALLOC_FREE(frame);
    12771357                return status;
    12781358        }
     
    13021382        }
    13031383
     1384        TALLOC_FREE(frame);
    13041385        return r.out.result;
    13051386}
     
    13171398        NET_API_STATUS status;
    13181399        WERROR werr;
    1319 
    1320         status = libnetapi_getctx(&ctx);
    1321         if (status != 0) {
     1400        TALLOC_CTX *frame = talloc_stackframe();
     1401
     1402        status = libnetapi_getctx(&ctx);
     1403        if (status != 0) {
     1404                TALLOC_FREE(frame);
    13221405                return status;
    13231406        }
     
    13461429        }
    13471430
     1431        TALLOC_FREE(frame);
    13481432        return r.out.result;
    13491433}
     
    13611445        NET_API_STATUS status;
    13621446        WERROR werr;
    1363 
    1364         status = libnetapi_getctx(&ctx);
    1365         if (status != 0) {
     1447        TALLOC_CTX *frame = talloc_stackframe();
     1448
     1449        status = libnetapi_getctx(&ctx);
     1450        if (status != 0) {
     1451                TALLOC_FREE(frame);
    13661452                return status;
    13671453        }
     
    13901476        }
    13911477
     1478        TALLOC_FREE(frame);
    13921479        return r.out.result;
    13931480}
     
    14101497        NET_API_STATUS status;
    14111498        WERROR werr;
    1412 
    1413         status = libnetapi_getctx(&ctx);
    1414         if (status != 0) {
     1499        TALLOC_CTX *frame = talloc_stackframe();
     1500
     1501        status = libnetapi_getctx(&ctx);
     1502        if (status != 0) {
     1503                TALLOC_FREE(frame);
    14151504                return status;
    14161505        }
     
    14451534        }
    14461535
     1536        TALLOC_FREE(frame);
    14471537        return r.out.result;
    14481538}
     
    14621552        NET_API_STATUS status;
    14631553        WERROR werr;
    1464 
    1465         status = libnetapi_getctx(&ctx);
    1466         if (status != 0) {
     1554        TALLOC_CTX *frame = talloc_stackframe();
     1555
     1556        status = libnetapi_getctx(&ctx);
     1557        if (status != 0) {
     1558                TALLOC_FREE(frame);
    14671559                return status;
    14681560        }
     
    14931585        }
    14941586
     1587        TALLOC_FREE(frame);
    14951588        return r.out.result;
    14961589}
     
    15091602        NET_API_STATUS status;
    15101603        WERROR werr;
    1511 
    1512         status = libnetapi_getctx(&ctx);
    1513         if (status != 0) {
     1604        TALLOC_CTX *frame = talloc_stackframe();
     1605
     1606        status = libnetapi_getctx(&ctx);
     1607        if (status != 0) {
     1608                TALLOC_FREE(frame);
    15141609                return status;
    15151610        }
     
    15391634        }
    15401635
     1636        TALLOC_FREE(frame);
    15411637        return r.out.result;
    15421638}
     
    15531649        NET_API_STATUS status;
    15541650        WERROR werr;
    1555 
    1556         status = libnetapi_getctx(&ctx);
    1557         if (status != 0) {
     1651        TALLOC_CTX *frame = talloc_stackframe();
     1652
     1653        status = libnetapi_getctx(&ctx);
     1654        if (status != 0) {
     1655                TALLOC_FREE(frame);
    15581656                return status;
    15591657        }
     
    15811679        }
    15821680
     1681        TALLOC_FREE(frame);
    15831682        return r.out.result;
    15841683}
     
    15971696        NET_API_STATUS status;
    15981697        WERROR werr;
    1599 
    1600         status = libnetapi_getctx(&ctx);
    1601         if (status != 0) {
     1698        TALLOC_CTX *frame = talloc_stackframe();
     1699
     1700        status = libnetapi_getctx(&ctx);
     1701        if (status != 0) {
     1702                TALLOC_FREE(frame);
    16021703                return status;
    16031704        }
     
    16271728        }
    16281729
     1730        TALLOC_FREE(frame);
    16291731        return r.out.result;
    16301732}
     
    16441746        NET_API_STATUS status;
    16451747        WERROR werr;
    1646 
    1647         status = libnetapi_getctx(&ctx);
    1648         if (status != 0) {
     1748        TALLOC_CTX *frame = talloc_stackframe();
     1749
     1750        status = libnetapi_getctx(&ctx);
     1751        if (status != 0) {
     1752                TALLOC_FREE(frame);
    16491753                return status;
    16501754        }
     
    16751779        }
    16761780
     1781        TALLOC_FREE(frame);
    16771782        return r.out.result;
    16781783}
     
    16941799        NET_API_STATUS status;
    16951800        WERROR werr;
    1696 
    1697         status = libnetapi_getctx(&ctx);
    1698         if (status != 0) {
     1801        TALLOC_CTX *frame = talloc_stackframe();
     1802
     1803        status = libnetapi_getctx(&ctx);
     1804        if (status != 0) {
     1805                TALLOC_FREE(frame);
    16991806                return status;
    17001807        }
     
    17281835        }
    17291836
     1837        TALLOC_FREE(frame);
    17301838        return r.out.result;
    17311839}
     
    17451853        NET_API_STATUS status;
    17461854        WERROR werr;
    1747 
    1748         status = libnetapi_getctx(&ctx);
    1749         if (status != 0) {
     1855        TALLOC_CTX *frame = talloc_stackframe();
     1856
     1857        status = libnetapi_getctx(&ctx);
     1858        if (status != 0) {
     1859                TALLOC_FREE(frame);
    17501860                return status;
    17511861        }
     
    17761886        }
    17771887
     1888        TALLOC_FREE(frame);
    17781889        return r.out.result;
    17791890}
     
    17931904        NET_API_STATUS status;
    17941905        WERROR werr;
    1795 
    1796         status = libnetapi_getctx(&ctx);
    1797         if (status != 0) {
     1906        TALLOC_CTX *frame = talloc_stackframe();
     1907
     1908        status = libnetapi_getctx(&ctx);
     1909        if (status != 0) {
     1910                TALLOC_FREE(frame);
    17981911                return status;
    17991912        }
     
    18241937        }
    18251938
     1939        TALLOC_FREE(frame);
    18261940        return r.out.result;
    18271941}
     
    18441958        NET_API_STATUS status;
    18451959        WERROR werr;
    1846 
    1847         status = libnetapi_getctx(&ctx);
    1848         if (status != 0) {
     1960        TALLOC_CTX *frame = talloc_stackframe();
     1961
     1962        status = libnetapi_getctx(&ctx);
     1963        if (status != 0) {
     1964                TALLOC_FREE(frame);
    18491965                return status;
    18501966        }
     
    18791995        }
    18801996
     1997        TALLOC_FREE(frame);
    18811998        return r.out.result;
    18821999}
     
    18962013        NET_API_STATUS status;
    18972014        WERROR werr;
    1898 
    1899         status = libnetapi_getctx(&ctx);
    1900         if (status != 0) {
     2015        TALLOC_CTX *frame = talloc_stackframe();
     2016
     2017        status = libnetapi_getctx(&ctx);
     2018        if (status != 0) {
     2019                TALLOC_FREE(frame);
    19012020                return status;
    19022021        }
     
    19272046        }
    19282047
     2048        TALLOC_FREE(frame);
    19292049        return r.out.result;
    19302050}
     
    19412061        NET_API_STATUS status;
    19422062        WERROR werr;
    1943 
    1944         status = libnetapi_getctx(&ctx);
    1945         if (status != 0) {
     2063        TALLOC_CTX *frame = talloc_stackframe();
     2064
     2065        status = libnetapi_getctx(&ctx);
     2066        if (status != 0) {
     2067                TALLOC_FREE(frame);
    19462068                return status;
    19472069        }
     
    19692091        }
    19702092
     2093        TALLOC_FREE(frame);
    19712094        return r.out.result;
    19722095}
     
    19852108        NET_API_STATUS status;
    19862109        WERROR werr;
    1987 
    1988         status = libnetapi_getctx(&ctx);
    1989         if (status != 0) {
     2110        TALLOC_CTX *frame = talloc_stackframe();
     2111
     2112        status = libnetapi_getctx(&ctx);
     2113        if (status != 0) {
     2114                TALLOC_FREE(frame);
    19902115                return status;
    19912116        }
     
    20152140        }
    20162141
     2142        TALLOC_FREE(frame);
    20172143        return r.out.result;
    20182144}
     
    20302156        NET_API_STATUS status;
    20312157        WERROR werr;
    2032 
    2033         status = libnetapi_getctx(&ctx);
    2034         if (status != 0) {
     2158        TALLOC_CTX *frame = talloc_stackframe();
     2159
     2160        status = libnetapi_getctx(&ctx);
     2161        if (status != 0) {
     2162                TALLOC_FREE(frame);
    20352163                return status;
    20362164        }
     
    20592187        }
    20602188
     2189        TALLOC_FREE(frame);
    20612190        return r.out.result;
    20622191}
     
    20782207        NET_API_STATUS status;
    20792208        WERROR werr;
    2080 
    2081         status = libnetapi_getctx(&ctx);
    2082         if (status != 0) {
     2209        TALLOC_CTX *frame = talloc_stackframe();
     2210
     2211        status = libnetapi_getctx(&ctx);
     2212        if (status != 0) {
     2213                TALLOC_FREE(frame);
    20832214                return status;
    20842215        }
     
    21122243        }
    21132244
     2245        TALLOC_FREE(frame);
    21142246        return r.out.result;
    21152247}
     
    21282260        NET_API_STATUS status;
    21292261        WERROR werr;
    2130 
    2131         status = libnetapi_getctx(&ctx);
    2132         if (status != 0) {
     2262        TALLOC_CTX *frame = talloc_stackframe();
     2263
     2264        status = libnetapi_getctx(&ctx);
     2265        if (status != 0) {
     2266                TALLOC_FREE(frame);
    21332267                return status;
    21342268        }
     
    21582292        }
    21592293
     2294        TALLOC_FREE(frame);
    21602295        return r.out.result;
    21612296}
     
    21752310        NET_API_STATUS status;
    21762311        WERROR werr;
    2177 
    2178         status = libnetapi_getctx(&ctx);
    2179         if (status != 0) {
     2312        TALLOC_CTX *frame = talloc_stackframe();
     2313
     2314        status = libnetapi_getctx(&ctx);
     2315        if (status != 0) {
     2316                TALLOC_FREE(frame);
    21802317                return status;
    21812318        }
     
    22062343        }
    22072344
     2345        TALLOC_FREE(frame);
    22082346        return r.out.result;
    22092347}
     
    22202358        NET_API_STATUS status;
    22212359        WERROR werr;
    2222 
    2223         status = libnetapi_getctx(&ctx);
    2224         if (status != 0) {
     2360        TALLOC_CTX *frame = talloc_stackframe();
     2361
     2362        status = libnetapi_getctx(&ctx);
     2363        if (status != 0) {
     2364                TALLOC_FREE(frame);
    22252365                return status;
    22262366        }
     
    22482388        }
    22492389
     2390        TALLOC_FREE(frame);
    22502391        return r.out.result;
    22512392}
     
    22642405        NET_API_STATUS status;
    22652406        WERROR werr;
    2266 
    2267         status = libnetapi_getctx(&ctx);
    2268         if (status != 0) {
     2407        TALLOC_CTX *frame = talloc_stackframe();
     2408
     2409        status = libnetapi_getctx(&ctx);
     2410        if (status != 0) {
     2411                TALLOC_FREE(frame);
    22692412                return status;
    22702413        }
     
    22942437        }
    22952438
     2439        TALLOC_FREE(frame);
    22962440        return r.out.result;
    22972441}
     
    23152459        NET_API_STATUS status;
    23162460        WERROR werr;
    2317 
    2318         status = libnetapi_getctx(&ctx);
    2319         if (status != 0) {
     2461        TALLOC_CTX *frame = talloc_stackframe();
     2462
     2463        status = libnetapi_getctx(&ctx);
     2464        if (status != 0) {
     2465                TALLOC_FREE(frame);
    23202466                return status;
    23212467        }
     
    23512497        }
    23522498
     2499        TALLOC_FREE(frame);
    23532500        return r.out.result;
    23542501}
     
    23682515        NET_API_STATUS status;
    23692516        WERROR werr;
    2370 
    2371         status = libnetapi_getctx(&ctx);
    2372         if (status != 0) {
     2517        TALLOC_CTX *frame = talloc_stackframe();
     2518
     2519        status = libnetapi_getctx(&ctx);
     2520        if (status != 0) {
     2521                TALLOC_FREE(frame);
    23732522                return status;
    23742523        }
     
    23992548        }
    24002549
     2550        TALLOC_FREE(frame);
    24012551        return r.out.result;
    24022552}
     
    24122562        NET_API_STATUS status;
    24132563        WERROR werr;
    2414 
    2415         status = libnetapi_getctx(&ctx);
    2416         if (status != 0) {
     2564        TALLOC_CTX *frame = talloc_stackframe();
     2565
     2566        status = libnetapi_getctx(&ctx);
     2567        if (status != 0) {
     2568                TALLOC_FREE(frame);
    24172569                return status;
    24182570        }
     
    24392591        }
    24402592
     2593        TALLOC_FREE(frame);
    24412594        return r.out.result;
    24422595}
     
    24552608        NET_API_STATUS status;
    24562609        WERROR werr;
    2457 
    2458         status = libnetapi_getctx(&ctx);
    2459         if (status != 0) {
     2610        TALLOC_CTX *frame = talloc_stackframe();
     2611
     2612        status = libnetapi_getctx(&ctx);
     2613        if (status != 0) {
     2614                TALLOC_FREE(frame);
    24602615                return status;
    24612616        }
     
    24852640        }
    24862641
     2642        TALLOC_FREE(frame);
    24872643        return r.out.result;
    24882644}
     
    25022658        NET_API_STATUS status;
    25032659        WERROR werr;
    2504 
    2505         status = libnetapi_getctx(&ctx);
    2506         if (status != 0) {
     2660        TALLOC_CTX *frame = talloc_stackframe();
     2661
     2662        status = libnetapi_getctx(&ctx);
     2663        if (status != 0) {
     2664                TALLOC_FREE(frame);
    25072665                return status;
    25082666        }
     
    25332691        }
    25342692
    2535         return r.out.result;
    2536 }
    2537 
     2693        TALLOC_FREE(frame);
     2694        return r.out.result;
     2695}
     2696
Note: See TracChangeset for help on using the changeset viewer.