commit | 60e073e28d5e52f8eb4feaa422abc71b8b9f831b | [log] [tgz] |
---|---|---|
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | Sun Feb 08 09:25:38 2015 +0100 |
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | Sun Feb 08 09:25:38 2015 +0100 |
tree | d72285138135a43cf6c1e915d7869ca0b38b6ea5 | |
parent | 019851a5238e95dd1a089d19d966973b5a61f568 [diff] |
nat: getopt returns "static" data no need to copy it I used strdup in case the data would not be valid from after the call to getopt and this creates a potential leak if a user is specifying multiple configuration files. If I depend on the fact that the string is a pointer into the argv[] array I can kill the strdup and fix the unlikely leak. Fixes: Coverity CID 1206578