mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-02 15:40:09 +01:00
utils: fix leak in kv_double_from_string()
We need to free 'pairs' here, do so by jumping to the error label. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
db2d16bfce
commit
75e4ab05e4
1 changed files with 1 additions and 1 deletions
|
|
@ -591,7 +591,7 @@ kv_double_from_string(const char *string,
|
|||
npairs++;
|
||||
|
||||
if (npairs == 0)
|
||||
return -1;
|
||||
goto error;
|
||||
|
||||
result = zalloc(npairs * sizeof *result);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue