summaryrefslogtreecommitdiffstats
path: root/src/plugins/bearer
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/bearer')
-rw-r--r--src/plugins/bearer/corewlan/qcorewlanengine.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/bearer/corewlan/qcorewlanengine.mm b/src/plugins/bearer/corewlan/qcorewlanengine.mm
index e565307..0e9e4bd 100644
--- a/src/plugins/bearer/corewlan/qcorewlanengine.mm
+++ b/src/plugins/bearer/corewlan/qcorewlanengine.mm
@@ -295,10 +295,10 @@ void QCoreWlanEngine::connectToId(const QString &id)
password = [NSString stringWithUTF8String:pBuf];
}
+ SecKeychainItemFreeContent(&listW, realPassword);
}
CFRelease(searchItem);
- SecKeychainItemFreeContent(&listW, realPassword);
} else {
qDebug() << "SecKeychainSearchCopyNext error";
}