]> git.ozlabs.org Git - ccan/blobdiff - ccan/opt/parse.c
opt: relicense to GPLv2+ (from GPLv3+)
[ccan] / ccan / opt / parse.c
index 5b2cec8b3d284e0b6795c87355d6ae00cf1290b9..94d75ad1fbe02ee77cd522f8615b7dff36998056 100644 (file)
@@ -1,4 +1,4 @@
-/* Licensed under GPLv3+ - see LICENSE file for details */
+/* Licensed under GPLv2+ - see LICENSE file for details */
 /* Actual code to parse commandline. */
 #include <ccan/opt/opt.h>
 #include <string.h>
@@ -116,7 +116,7 @@ int parse_one(int *argc, char *argv[], enum opt_type is_early, unsigned *offset,
 
        if (problem) {
                parse_err(errlog, argv[0], o, len, problem);
-               free(problem);
+               opt_alloc.free(problem);
                return -1;
        }