Fix potential memory leak

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3312 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2011-02-23 12:09:09 +00:00
parent f22899e80d
commit 634457fa89

View File

@ -2040,9 +2040,8 @@ nuttx-5.18 2011-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
a USB host HID keyboard configuraion.
* drivers/usbhost/hid_parser.c -- Leverages the LUFA HID parser written by
Dean Camera.
* lib/lib_getopt() -- Correct an error in the getopt() logic: On certain error
return cases, the state was not being reset correcly and incorrect behaviors
could occur on subsequent calls to getopt().
* examples/nsh -- Correct an usage of getopt(): If you stop calling getopt()
before all parameters are parsed, you can leave getopt() in a strange state.
pascal-2.1 2011-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>