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