diff options
author | Derrell Lipman <derrell.lipman@unwireduniverse.com> | 2008-01-17 11:50:41 -0500 |
---|---|---|
committer | Derrell Lipman <derrell.lipman@unwireduniverse.com> | 2008-01-17 11:50:41 -0500 |
commit | add597f77c245807905f62b81cad52b03d7a7c74 (patch) | |
tree | 41cecb2b1869c4a9603f7d95d2a1d0b7b36ace49 /source3/lib/netapi/examples/getdc/getdc.c | |
parent | 46080b0f4eea6285a8f2009e8ab6cf58623c1f6f (diff) | |
parent | 9e3634fb63f6dec1a3c820a462b5f732e7d09206 (diff) | |
download | samba-add597f77c245807905f62b81cad52b03d7a7c74.tar.gz samba-add597f77c245807905f62b81cad52b03d7a7c74.tar.bz2 samba-add597f77c245807905f62b81cad52b03d7a7c74.zip |
Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test
(This used to be commit 7135d2aea5a68a79e2a77d4a02219436f5e154cc)
Diffstat (limited to 'source3/lib/netapi/examples/getdc/getdc.c')
-rw-r--r-- | source3/lib/netapi/examples/getdc/getdc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/netapi/examples/getdc/getdc.c b/source3/lib/netapi/examples/getdc/getdc.c index cdd4d0b3b4..272ba1088e 100644 --- a/source3/lib/netapi/examples/getdc/getdc.c +++ b/source3/lib/netapi/examples/getdc/getdc.c @@ -29,7 +29,7 @@ int main(int argc, char **argv) { NET_API_STATUS status; struct libnetapi_ctx *ctx = NULL; - uint8_t *buffer; + uint8_t *buffer = NULL; if (argc < 3) { printf("usage: getdc <hostname> <domain>\n"); @@ -50,7 +50,7 @@ int main(int argc, char **argv) } else { printf("%s\n", (char *)buffer); } - + NetApiBufferFree(buffer); libnetapi_free(ctx); return status; |