summaryrefslogtreecommitdiffstats
path: root/pand/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'pand/main.c')
-rw-r--r--pand/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pand/main.c b/pand/main.c
index 4afc095f..e57c80be 100644
--- a/pand/main.c
+++ b/pand/main.c
@@ -551,7 +551,6 @@ int main(int argc, char **argv)
case 'Q':
mode = CONNECT;
- dst = NULL;
if (optarg)
search_duration = atoi(optarg);
break;
@@ -565,7 +564,6 @@ int main(int argc, char **argv)
case 'K':
mode = KILL;
detach = 0;
- dst = NULL;
break;
case 'S':
@@ -700,6 +698,7 @@ int main(int argc, char **argv)
strncpy(cache.dst, dst, sizeof(cache.dst) - 1);
str2ba(dst, &cache.bdaddr);
cache.valid = 1;
+ free(dst);
}
switch (mode) {