summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2011-05-27 19:36:47 +0200
committerGravatar Martin Szulecki2012-03-22 18:49:08 +0100
commit8eb03ff08e70b65975715f8711ab69c3e007d624 (patch)
treeac580115a5154c4df6487b3873400cbb7841ca85
parentba92c353c07fa006ac744ce6280714650a25a6ad (diff)
downloadlibimobiledevice-8eb03ff08e70b65975715f8711ab69c3e007d624.tar.gz
libimobiledevice-8eb03ff08e70b65975715f8711ab69c3e007d624.tar.bz2
notification_proxy: use free() instead of g_free()
-rw-r--r--src/notification_proxy.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/notification_proxy.c b/src/notification_proxy.c
index 80a82c4..a883cfa 100644
--- a/src/notification_proxy.c
+++ b/src/notification_proxy.c
@@ -194,7 +194,9 @@ np_error_t np_post_notification(np_client_t client, const char *notification)
} else {
debug_plist(dict);
}
- g_free(cmd_value);
+ if (cmd_value) {
+ free(cmd_value);
+ }
#endif
plist_free(dict);
}