diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-03-27 12:53:20 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-03-27 12:53:20 +0100 |
| commit | 3987c3f22206768e875b45ff10b3824c52903d09 (patch) | |
| tree | 34d506b94ddc3c0f4dd6f6b6b6861d98b7ddfd0d /src | |
| parent | 06fe950a32fb9614aea12c31d4733e6a807553c9 (diff) | |
| download | PROJ-3987c3f22206768e875b45ff10b3824c52903d09.tar.gz PROJ-3987c3f22206768e875b45ff10b3824c52903d09.zip | |
optargpm.h: fix remaining memleak in error code path. Coverity CID 193537
Diffstat (limited to 'src')
| -rw-r--r-- | src/apps/optargpm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/apps/optargpm.h b/src/apps/optargpm.h index e7f4f8e5..f293ad98 100644 --- a/src/apps/optargpm.h +++ b/src/apps/optargpm.h @@ -526,6 +526,7 @@ OPTARGS *opt_parse (int argc, char **argv, const char *flags, const char *keys, c = opt_ordinal (o, crepr); if (0==c) { fprintf (stderr, "Invalid option \"%s\"\n", crepr); + free (o); return nullptr; } |
