[PATCH 1/2] Use correct g_free() function
- From: Thomas Jarosch <thomas jarosch intra2net com>
- To: networkmanager-list gnome org
- Subject: [PATCH 1/2] Use correct g_free() function
- Date: Tue, 04 Oct 2011 22:22:49 +0200
Detected by cppcheck.
Signed-off-by: Thomas Jarosch <thomas jarosch intra2net com>
---
src/settings/plugins/ifcfg-rh/shvar.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/settings/plugins/ifcfg-rh/shvar.c b/src/settings/plugins/ifcfg-rh/shvar.c
index c740801..4f8ddd6 100644
--- a/src/settings/plugins/ifcfg-rh/shvar.c
+++ b/src/settings/plugins/ifcfg-rh/shvar.c
@@ -336,13 +336,13 @@ svSetValue(shvarFile *s, const char *key, const char *value, gboolean verbatim)
}
end:
- if (newval) free(newval);
+ if (newval) g_free(newval);
if (val1) free(val1);
if (val2) free(val2);
return;
bail:
- if (keyValue) free (keyValue);
+ if (keyValue) g_free (keyValue);
goto end;
}
--
1.7.4.4
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]