Maximilien Siavelis
2018-01-09 4ca9b1793db8a736a039fc097fc97f4cc3c92e48
avoid free on deallocated pointer
2个文件已修改
17 ■■■■ 已修改文件
README.md 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/library/os/os-win.c 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
README.md
@@ -36,24 +36,32 @@
How to build
============
```
git clone https://github.com/open-license-manager/open-license-manager.git
cd open-license-manager/
mkdir build
cd build
```
 
# on Linux :
## on Linux :
```
cmake .. -DCMAKE_INSTALL_PREFIX=../install
make
make install
```
# on Windows with MSVC 2010
## on Windows (with MSVC 2010)
```
cmake .. -G "Visual Studio 10 2010 Win64" -DCMAKE_INSTALL_PREFIX=../install
cmake --build . --target install
cmake --build . --target install --config Release
```
# cross compile with MINGW on Linux
## cross compile with MINGW on Linux
```
x86_64-w64-mingw32.static-cmake .. -DCMAKE_INSTALL_PREFIX=../install
make
make install
```
src/library/os/os-win.c
@@ -140,6 +140,7 @@
                );
        if (dwStatus != NO_ERROR) {
            free(pAdapterInfo);
            pAdapterInfo = NULL;
        }
    } while (dwStatus == ERROR_BUFFER_OVERFLOW && i-- > 0);