tony2001 / pinba_extension

Pinba PHP extension
http://pinba.org
GNU Lesser General Public License v2.1
83 stars 22 forks source link

bug #6

Closed ghost closed 11 years ago

ghost commented 11 years ago
[protobuf-c.c:170]: (error) Possible null pointer dereference: new_data
tony2001 commented 11 years ago

Compile warning is not a real bug. Yes, it's possible that malloc() can return NULL when there's no free memory left. In that case Pinba crashing would be one of your least worries..

tony2001 commented 11 years ago

That said, I'll add a check for NULL in that case. It makes very little sense to me, though.

tony2001 commented 11 years ago

The check is actually already there, if you look at the code.