diff options
author | Nikias Bassen | 2014-04-24 21:06:09 +0200 |
---|---|---|
committer | Nikias Bassen | 2014-04-24 21:06:09 +0200 |
commit | 6340b3519aae212d7ffa6d0ea4ebcab7c6615eec (patch) | |
tree | 00380dc07356e2b81ce6730db267dd7326d173de /src | |
parent | 5f71c3b1ddbd51e331bcff13c4606fa60b062d89 (diff) | |
download | libusbmuxd-6340b3519aae212d7ffa6d0ea4ebcab7c6615eec.tar.gz libusbmuxd-6340b3519aae212d7ffa6d0ea4ebcab7c6615eec.tar.bz2 |
Close socket in usbmuxd_read_buid() and usbmuxd_*_pair_record() functions
Diffstat (limited to 'src')
-rw-r--r-- | src/libusbmuxd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libusbmuxd.c b/src/libusbmuxd.c index 11af687..725ed53 100644 --- a/src/libusbmuxd.c +++ b/src/libusbmuxd.c @@ -1126,6 +1126,7 @@ int usbmuxd_read_buid(char **buid) } plist_free(pl); } + socket_close(sfd); return ret; } @@ -1173,6 +1174,7 @@ int usbmuxd_read_pair_record(const char* record_id, char **record_data, uint32_t } plist_free(pl); } + socket_close(sfd); return ret; } @@ -1211,6 +1213,7 @@ int usbmuxd_save_pair_record(const char* record_id, const char *record_data, uin } } plist_free(data); + socket_close(sfd); return ret; } @@ -1247,6 +1250,7 @@ int usbmuxd_delete_pair_record(const char* record_id) DEBUG(1, "%s: Error: deleting pair record failed: %d\n", __func__, ret); } } + socket_close(sfd); return ret; } |