summaryrefslogtreecommitdiffstats
path: root/tools/irecovery.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2018-01-03 02:42:25 +0100
committerGravatar Nikias Bassen2018-01-03 02:42:25 +0100
commitf78fc4a11b81bcb2aacf93a2060f15fa2f99b66a (patch)
tree0b5bddb32069dbcad0a6a52715220c7e12c569b9 /tools/irecovery.c
parentf06b60e5c1f0ea3ebfdf5684cb884be5c49acee7 (diff)
downloadlibirecovery-f78fc4a11b81bcb2aacf93a2060f15fa2f99b66a.tar.gz
libirecovery-f78fc4a11b81bcb2aacf93a2060f15fa2f99b66a.tar.bz2
Remove some unnecessary null pointer checks
Diffstat (limited to 'tools/irecovery.c')
-rw-r--r--tools/irecovery.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/irecovery.c b/tools/irecovery.c
index 0db60e4..f250dc5 100644
--- a/tools/irecovery.c
+++ b/tools/irecovery.c
@@ -299,8 +299,7 @@ int postcommand_cb(irecv_client_t client, const irecv_event_t* event) {
}
}
- if (command)
- free(command);
+ free(command);
return 0;
}