diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-08-21 18:48:03 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-08-21 18:48:03 +0200 |
commit | db2917b1da1fd697bf774ca2e1f4c68247dac3df (patch) | |
tree | c099969476620d679f380d9e8329d73984e78e63 /src/argparser.c | |
parent | issue 4, info documentation (diff) | |
download | argparser-db2917b1da1fd697bf774ca2e1f4c68247dac3df.tar.gz argparser-db2917b1da1fd697bf774ca2e1f4c68247dac3df.tar.bz2 argparser-db2917b1da1fd697bf774ca2e1f4c68247dac3df.tar.xz |
rare case memory leak
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/argparser.c')
-rw-r--r-- | src/argparser.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/argparser.c b/src/argparser.c index e507986..122aa68 100644 --- a/src/argparser.c +++ b/src/argparser.c @@ -192,6 +192,8 @@ void args_dispose() if (args_optmap.keys != null) free(map_free(&args_optmap)); + else + free(args_optmap.data); if (args_opts.keys != null) { @@ -201,6 +203,8 @@ void args_dispose() free(*(freethis + i++)); free(freethis); } + else + free(args_opts.data); } |