summaryrefslogtreecommitdiffstats
path: root/source/include/client.h
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
commit911c57403bd116405876e73913ad73efd15f659b (patch)
treea99ffd01a77d7027e4b712d424d937da40a75bed /source/include/client.h
parent1421f2fbcb296a894cb4e7548e0275e35e055b98 (diff)
downloadsamba-911c57403bd116405876e73913ad73efd15f659b.tar.gz
samba-911c57403bd116405876e73913ad73efd15f659b.tar.xz
samba-911c57403bd116405876e73913ad73efd15f659b.zip
prevent a memory leak of cli structures
Diffstat (limited to 'source/include/client.h')
-rw-r--r--source/include/client.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/include/client.h b/source/include/client.h
index 9dd41313f28..fde001813d3 100644
--- a/source/include/client.h
+++ b/source/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 */