mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-06-15 22:08:51 +02:00
ifcfg-rh: fix leak in svOpenFileInternal()
Error found by coverity. https://bugzilla.gnome.org/show_bug.cgi?id=728320 Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
628e774ba8
commit
cf96ced717
1 changed files with 1 additions and 0 deletions
|
|
@ -79,6 +79,7 @@ svOpenFileInternal (const char *name, gboolean create, GError **error)
|
|||
continue;
|
||||
if (nread <= 0) {
|
||||
errsv = errno;
|
||||
g_free (arena);
|
||||
goto bail;
|
||||
}
|
||||
total += nread;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue