15 lines
471 B
Diff
15 lines
471 B
Diff
Index: libunistring-0.9.7/tests/test-malloca.c
|
|
===================================================================
|
|
--- libunistring-0.9.7.orig/tests/test-malloca.c 2016-12-02 17:42:02.000000000 +0100
|
|
+++ libunistring-0.9.7/tests/test-malloca.c 2017-05-05 09:21:26.457936689 +0200
|
|
@@ -27,7 +27,8 @@ do_allocation (int n)
|
|
{
|
|
void *ptr = malloca (n);
|
|
freea (ptr);
|
|
- safe_alloca (n);
|
|
+ ptr = safe_alloca (n);
|
|
+ freea (ptr);
|
|
}
|
|
|
|
void (*func) (int) = do_allocation;
|