Hello!

There is a minor memory leak in utilities/diatheke/diatheke.cpp related to the following allocation when parsing the query key (-k option):

                ref = new char[key.length() + 1];
                strcpy (ref, key.c_str());
                if (strlen(ref))
                    runquery |= RQ_REF;
            }

The memory allocated is not freed when returning from the function nor before overwriting its address in the ref variable in cases the user passes multiple -k options for some strange reason.

Best regards,
J
_______________________________________________
sword-devel mailing list: sword-devel@crosswire.org
http://crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Reply via email to