diff options
author | nigel <nigel@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2007-02-24 21:41:34 +0000 |
---|---|---|
committer | nigel <nigel@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2007-02-24 21:41:34 +0000 |
commit | 78d9c9e331dc39ca5131981dd347b7b3aeca459f (patch) | |
tree | 347886012dc53c546033b8cfcaa105973488405d /pcredemo.c | |
parent | 5deecd6a48a3c346b7677003c35e323a31129740 (diff) | |
download | pcre-78d9c9e331dc39ca5131981dd347b7b3aeca459f.tar.gz |
Load pcre-6.7 into code/trunk.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@91 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcredemo.c')
-rw-r--r-- | pcredemo.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -117,7 +117,7 @@ if (rc < 0) */ default: printf("Matching error %d\n", rc); break; } - free(re); /* Release memory used for the compiled pattern */ + pcre_free(re); /* Release memory used for the compiled pattern */ return 1; } @@ -223,8 +223,8 @@ if (namecount <= 0) printf("No named substrings\n"); else if (!find_all) { - free(re); /* Release the memory used for the compiled pattern */ - return 0; /* Finish unless -g was given */ + pcre_free(re); /* Release the memory used for the compiled pattern */ + return 0; /* Finish unless -g was given */ } /* Loop for second and subsequent matches */ @@ -276,7 +276,7 @@ for (;;) if (rc < 0) { printf("Matching error %d\n", rc); - free(re); /* Release memory used for the compiled pattern */ + pcre_free(re); /* Release memory used for the compiled pattern */ return 1; } @@ -317,7 +317,7 @@ for (;;) } /* End of loop to find second and subsequent matches */ printf("\n"); -free(re); /* Release memory used for the compiled pattern */ +pcre_free(re); /* Release memory used for the compiled pattern */ return 0; } |