diff options
author | Nicolas Haunold | 2010-05-14 16:17:21 +0200 |
---|---|---|
committer | Nicolas Haunold | 2010-05-14 16:17:21 +0200 |
commit | 6eb576e410695832ad29b93c7c2f3110495ca114 (patch) | |
tree | 5336f50a8bee4bec5aed6c9ba4fd2c9733662826 /src | |
parent | 2d126cde8a31ec79d7c728cecbdd8e5b55fc7e08 (diff) | |
download | libirecovery-6eb576e410695832ad29b93c7c2f3110495ca114.tar.gz libirecovery-6eb576e410695832ad29b93c7c2f3110495ca114.tar.bz2 |
Fixed memory leak.
Diffstat (limited to 'src')
-rw-r--r-- | src/irecovery.c | 1 |
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(); |