This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Hoernchen gerrit-no-reply at lists.osmocom.orgHoernchen has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/17058 )
Change subject: pcsc: don't leak memory
......................................................................
pcsc: don't leak memory
Change-Id: I183882ff2eae82754d55189b154863fad9cce4aa
---
M src/sim/reader_pcsc.c
1 file changed, 4 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/58/17058/1
diff --git a/src/sim/reader_pcsc.c b/src/sim/reader_pcsc.c
index 9e05e3c..04a8622 100644
--- a/src/sim/reader_pcsc.c
+++ b/src/sim/reader_pcsc.c
@@ -87,11 +87,14 @@
num_readers++;
}
- if (num != num_readers)
+ if (num != num_readers) {
+ SCardFreeMemory(st->hContext, mszReaders);
goto end;
+ }
st->name = talloc_strdup(rh, ptr);
st->dwActiveProtocol = -1;
+ SCardFreeMemory(st->hContext, mszReaders);
return rh;
end:
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/17058
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I183882ff2eae82754d55189b154863fad9cce4aa
Gerrit-Change-Number: 17058
Gerrit-PatchSet: 1
Gerrit-Owner: Hoernchen <ewild at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200129/7ee9cc2a/attachment.htm>