mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 21:44:31 +00:00
[CMD]
* Plug a memory leak. Based on a patch by Samuel Serapion. CORE-7297 #resolve #comment Fixed in r59611. Thanks. svn path=/trunk/; revision=59612
This commit is contained in:
parent
54aa628200
commit
7e7dd3324e
|
@ -194,6 +194,7 @@ BOOL add_entry (LPINT ac, LPTSTR **arg, LPCTSTR entry)
|
|||
*arg = cmd_realloc (oldarg, (*ac + 2) * sizeof (LPTSTR));
|
||||
if (NULL == *arg)
|
||||
{
|
||||
cmd_free (q);
|
||||
*arg = oldarg;
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue