Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion winpgntc.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,18 @@ agent_query(void *buf)
UnmapViewOfFile(p);
CloseHandle(filemap);
LocalFree(psd);
psd = NULL;
free(usersid);

usersid = NULL;
if (id > 0)
return;
}

/* LocalFree and free are fine with NULL, so null checks aren't
* necessary. */
LocalFree(psd);
free(usersid);

}

static const char reply_error[5] = { 0, 0, 0, 1, SSH_AGENT_FAILURE };
Expand Down