projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
54aa628
)
[CMD]
author
Amine Khaldi
<amine.khaldi@reactos.org>
Thu, 1 Aug 2013 15:40:34 +0000
(15:40 +0000)
committer
Amine Khaldi
<amine.khaldi@reactos.org>
Thu, 1 Aug 2013 15:40:34 +0000
(15:40 +0000)
* Plug a memory leak. Based on a patch by Samuel Serapion.
CORE-7297 #resolve #comment Fixed in r59611. Thanks.
svn path=/trunk/; revision=59612
reactos/base/shell/cmd/misc.c
patch
|
blob
|
history
diff --git
a/reactos/base/shell/cmd/misc.c
b/reactos/base/shell/cmd/misc.c
index
45a12e5
..
c94fce8
100644
(file)
--- a/
reactos/base/shell/cmd/misc.c
+++ b/
reactos/base/shell/cmd/misc.c
@@
-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;
}