mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-14 04:55:41 +01:00
xfer: fix possible minor memory leak in xfer_options_parse_args() (coverity)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
30f9a14a79
commit
11e6de5493
1 changed files with 4 additions and 1 deletions
|
@ -349,8 +349,11 @@ int xfer_options_parse_args(struct xfer_context *xfer,
|
||||||
xfer->multiple_cntrs = true;
|
xfer->multiple_cntrs = true;
|
||||||
else if (key == OPT_DUMP_HW_PARAMS)
|
else if (key == OPT_DUMP_HW_PARAMS)
|
||||||
xfer->dump_hw_params = true;
|
xfer->dump_hw_params = true;
|
||||||
else if (key == '?')
|
else if (key == '?') {
|
||||||
|
free(l_opts);
|
||||||
|
free(s_opts);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
}
|
||||||
else if (key == OPT_MAX_FILE_TIME ||
|
else if (key == OPT_MAX_FILE_TIME ||
|
||||||
key == OPT_USE_STRFTIME ||
|
key == OPT_USE_STRFTIME ||
|
||||||
key == OPT_PROCESS_ID_FILE ||
|
key == OPT_PROCESS_ID_FILE ||
|
||||||
|
|
Loading…
Reference in a new issue