summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-11-27 03:29:20 +0000
committerAndrew Tridgell <tridge@samba.org>2001-11-27 03:29:20 +0000
commit701ecfc7a0a944844cadfd0b2c19f104ab7984b0 (patch)
treed7fa8d7a7630eec79b8fb2f5b8c49fba79e1136d /source3/include
parent097d46653632855edd429fb8cd44d80f3e30c86c (diff)
downloadsamba-701ecfc7a0a944844cadfd0b2c19f104ab7984b0.tar.gz
samba-701ecfc7a0a944844cadfd0b2c19f104ab7984b0.tar.bz2
samba-701ecfc7a0a944844cadfd0b2c19f104ab7984b0.zip
prevent a memory leak of cli structures
(This used to be commit 911c57403bd116405876e73913ad73efd15f659b)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/client.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/include/client.h b/source3/include/client.h
index 9dd41313f2..fde001813d 100644
--- a/source3/include/client.h
+++ b/source3/include/client.h
@@ -138,6 +138,10 @@ struct cli_state {
BOOL (*oplock_handler)(struct cli_state *cli, int fnum, unsigned char level);
BOOL force_dos_errors;
+
+ /* was this structure allocated by cli_initialise? If so, then
+ free in cli_shutdown() */
+ BOOL allocated;
};
#endif /* _CLIENT_H */