summaryrefslogtreecommitdiff
path: root/tests/auto/valgrind/memcheck/testapps/free2/main.cpp
blob: 3a0f7b33a467b709b24ce675caa728e6e998135b (plain)
1
2
3
4
5
6
7
8
9
10
11
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#include <cstdlib>

int main()
{
    int *p = new int;
    free(p);
    return 0;
}