qemu-usb: handle null pointer in 'free()'

Fixes #2128
This commit is contained in:
Christian Prochaska 2016-10-12 16:52:38 +02:00 committed by Christian Helmuth
parent c2e7727f46
commit b41b001003

View File

@ -95,7 +95,9 @@ void *memset(void *s, int c, size_t n) {
void free(void *p) {
Genode::env()->heap()->free(p, 0); }
if (!p) return;
Genode::env()->heap()->free(p, 0);
}
void q_printf(char const *fmt, ...)