From: Sebastian Harl Date: Wed, 14 May 2014 19:33:25 +0000 (+0200) Subject: dbi_test: Don't allocate any memory in dbi_driver_open_r(). X-Git-Tag: sysdb-0.1.0~19 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=558bc860acedceb271ee54a19d99ccfeda67235a;p=sysdb.git dbi_test: Don't allocate any memory in dbi_driver_open_r(). This memory would be lost and appears as irrelevant noise in valgrind memory checks. --- diff --git a/t/unit/utils/dbi_test.c b/t/unit/utils/dbi_test.c index 8a0811b..1ad96d1 100644 --- a/t/unit/utils/dbi_test.c +++ b/t/unit/utils/dbi_test.c @@ -176,7 +176,7 @@ dbi_driver_open_r(const char *name, dbi_inst __attribute__((unused)) inst) { if (strcmp(name, "mockdriver")) return NULL; - return (dbi_driver)strdup(name); + return (dbi_driver)"mockdriver"; } /* dbi_driver_open */ dbi_driver