mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix improbable memory leak in _citrus_prop_read_str().
Found by: Clang Static Analyzer
This commit is contained in:
parent
b23cbbe6db
commit
4194e4e371
1 changed files with 3 additions and 1 deletions
|
|
@ -293,8 +293,10 @@ done:
|
|||
}
|
||||
_memstream_ungetc(ms, ch);
|
||||
errnum = _citrus_prop_read_character_common(ms, &ch);
|
||||
if (errnum != 0)
|
||||
if (errnum != 0) {
|
||||
free(s);
|
||||
return (errnum);
|
||||
}
|
||||
s[n] = ch;
|
||||
++n, --m;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue