X Tutup
Skip to content

Commit eb03fc3

Browse files
free shBuf
1 parent 27610b2 commit eb03fc3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/elevate.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ int runas(int argc, char** argv) {
295295

296296
memcpy(currentManipEnvSz, shBuf, sizeof(wchar_t) * (wcslen(shBuf)));
297297
currentManipEnvSz += sizeof(wchar_t) * (wcslen(shBuf));
298+
free(shBuf);
298299

299300
memcpy(currentManipEnvSz, terminator, sizeof(wchar_t));
300301
currentManipEnvSz += sizeof(wchar_t) * 1;

0 commit comments

Comments
 (0)
X Tutup