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:
Thomas Haller 2014-04-15 19:34:03 +02:00
parent 628e774ba8
commit cf96ced717

View file

@ -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;