Skip to content

Commit 41e9da8

Browse files
author
Ajo Robert
committed
Bug#27081349 UNEXPECTED BEHAVIOUR WHEN DELETE WITH SPATIAL
FUNCTION Fixed missing null pointer check. Change-Id: I4be3ed1274a87af0c802dacc9345affb8185eb90
1 parent baa86f3 commit 41e9da8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sql/gcalc_slicescan.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ class Gcalc_heap : public Gcalc_dyn_list
144144
Info *result= (Info *)new_item();
145145
if (!result)
146146
return NULL;
147+
if (!m_hook)
148+
return NULL;
147149
*m_hook= result;
148150
m_hook= &result->next;
149151
m_n_points++;

0 commit comments

Comments
 (0)