ifcfg-rh: use correct g_free() function

Detected by cppcheck.

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>

(dcbw: fix more occurances)
This commit is contained in:
Thomas Jarosch
2011-10-04 22:22:49 +02:00
committed by Dan Williams
parent 7956d661ee
commit d7ad91d1b4

View File

@@ -336,13 +336,13 @@ svSetValue(shvarFile *s, const char *key, const char *value, gboolean verbatim)
} }
end: end:
if (newval) free(newval); g_free(newval);
if (val1) free(val1); g_free(val1);
if (val2) free(val2); g_free(val2);
return; return;
bail: bail:
if (keyValue) free (keyValue); g_free (keyValue);
goto end; goto end;
} }