summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nicolas Haunold2010-05-14 16:17:21 +0200
committerGravatar Nicolas Haunold2010-05-14 16:17:21 +0200
commit6eb576e410695832ad29b93c7c2f3110495ca114 (patch)
tree5336f50a8bee4bec5aed6c9ba4fd2c9733662826
parent2d126cde8a31ec79d7c728cecbdd8e5b55fc7e08 (diff)
downloadlibirecovery-6eb576e410695832ad29b93c7c2f3110495ca114.tar.gz
libirecovery-6eb576e410695832ad29b93c7c2f3110495ca114.tar.bz2
Fixed memory leak.
-rw-r--r--src/irecovery.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/irecovery.c b/src/irecovery.c
index 13d8be1..e9ecdea 100644
--- a/src/irecovery.c
+++ b/src/irecovery.c
@@ -46,6 +46,7 @@ void init_shell(irecv_device* device) {
char* arg = strtok(0, " ");
if(cmd[1] == 'q') {
+ free(cmd);
break;
} else if(cmd[1] == 'h') {
print_shell_usage();