summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2011-05-27 19:36:47 +0200
committerGravatar Nikias Bassen2011-05-27 19:36:47 +0200
commit565b5901d666de3bfe538be27aebb9f443de98f0 (patch)
treebad898ee9b2b8d4808625e995fbdb6a5ca78577d /src
parent5c10f12e408b11afbd7c3cc93ddf7d85f1527417 (diff)
downloadlibimobiledevice-565b5901d666de3bfe538be27aebb9f443de98f0.tar.gz
libimobiledevice-565b5901d666de3bfe538be27aebb9f443de98f0.tar.bz2
notification_proxy: use free() instead of g_free()
Diffstat (limited to 'src')
-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);
}