From 7e3c2611d02c00fb3f74b8d00eca2aa3659b0537 Mon Sep 17 00:00:00 2001 From: "yoonki.park" Date: Wed, 16 Oct 2013 15:58:45 +0900 Subject: [PATCH] remove resource leak Change-Id: I63610fd78399f58ddb7eac45d84c146f4fac7631 Signed-off-by: yoonki.park --- src/sdb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sdb.c b/src/sdb.c index aa75a82..b726574 100644 --- a/src/sdb.c +++ b/src/sdb.c @@ -394,6 +394,7 @@ int get_emulator_forward_port() { port_buf[strlen(port_buf)-1]='\0'; port = strtol(port_buf, NULL, 10); } + sdb_close(fd); return port; } @@ -414,6 +415,7 @@ int get_emulator_name(char str[], int str_size) { return -1; } } + sdb_close(fd); return 0; } -- 2.7.4