Changeset: 92d986ef6dc6 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=92d986ef6dc6
Modified Files:
        gdk/gdk_atoms.c
Branch: Jan2014
Log Message:

Fixed possible double free found by Coverity.


diffs (11 lines):

diff --git a/gdk/gdk_atoms.c b/gdk/gdk_atoms.c
--- a/gdk/gdk_atoms.c
+++ b/gdk/gdk_atoms.c
@@ -1348,6 +1348,7 @@ strFromStr(const char *src, int *len, ch
        if (p != NULL && (char *) p != str_nil && *len < l) {
                GDKfree(p);
                p = NULL;
+               *dst = NULL;
        }
        if (p == NULL || (char *) p == str_nil)
                if ((p = GDKmalloc(*len = l)) == NULL)
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to