diff options
author | Günther Deschner <gd@samba.org> | 2009-02-02 13:38:38 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-02-03 15:45:09 +0100 |
commit | b94946697dc1d2915f6330f3a02cca7d69bc7cff (patch) | |
tree | 5672fbb636cbad20a0929736a884656a4d4bce7d /source3/utils | |
parent | 4976777e3b0f3d8c18182a822937f62c082027c7 (diff) | |
download | samba-b94946697dc1d2915f6330f3a02cca7d69bc7cff.tar.gz samba-b94946697dc1d2915f6330f3a02cca7d69bc7cff.tar.bz2 samba-b94946697dc1d2915f6330f3a02cca7d69bc7cff.zip |
s3-eventlog: pass down talloc context to parse_logentry().
Guenther
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/eventlogadm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/utils/eventlogadm.c b/source3/utils/eventlogadm.c index 7d40772423..fb0bc602cc 100644 --- a/source3/utils/eventlogadm.c +++ b/source3/utils/eventlogadm.c @@ -89,6 +89,7 @@ static int DoWriteCommand( int argc, char **argv, bool debugflag, char *exename bool is_eor; Eventlog_entry ee; int rcnum; + TALLOC_CTX *mem_ctx = talloc_tos(); f1 = stdin; if ( !f1 ) { @@ -122,7 +123,7 @@ static int DoWriteCommand( int argc, char **argv, bool debugflag, char *exename is_eor = False; - parse_logentry( ( char * ) &linein, &ee, &is_eor ); + parse_logentry( mem_ctx, ( char * ) &linein, &ee, &is_eor ); /* should we do something with the return code? */ if ( is_eor ) { |