1
mirror of https://github.com/rapid7/metasploit-payloads synced 2025-01-02 11:36:22 +01:00

free the useraccount each time too

make sure we are doing good memory cleanup

MSP-12356
This commit is contained in:
David Maloney 2015-04-30 13:18:55 -05:00
parent 3ebf0513b0
commit 5c1c9c317d

View File

@ -187,6 +187,7 @@ static DWORD ntds_channel_read(Channel *channel, Packet *request,
*bytesRead = bufferSize;
next_user(ctx->ntdsState, ctx->accountColumns);
}
free(userAccount);
return result;
}